summaryrefslogtreecommitdiff
path: root/v4l2-mfc-example
diff options
context:
space:
mode:
authorMateusz Krawczuk <m.krawczuk@samsung.com>2015-07-08 14:10:52 +0200
committerSylwester Nawrocki <s.nawrocki@samsung.com>2015-07-09 15:55:20 +0200
commitcfd3d725a10f84b9d477732e04924b64f8d39dbb (patch)
treeaebee3ec878c758bc71c9fc97f946a2e1b292bc9 /v4l2-mfc-example
parentd1bb80df16a8bee9635a916f02c848298f7d9988 (diff)
v4l2-mfc-example: Don`t dequeue first frame
HACK: Fixing h264 on exynos5 Signed-off-by: Mateusz Krawczuk <m.krawczuk@samsung.com>
Diffstat (limited to 'v4l2-mfc-example')
-rw-r--r--v4l2-mfc-example/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/v4l2-mfc-example/main.c b/v4l2-mfc-example/main.c
index a27aa16..5360204 100644
--- a/v4l2-mfc-example/main.c
+++ b/v4l2-mfc-example/main.c
@@ -107,6 +107,7 @@ int dequeue_output(struct instance *i, int *n)
struct v4l2_plane planes[MFC_OUT_PLANES];
memzero(qbuf);
+ memzero(planes[0]);
qbuf.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
qbuf.memory = V4L2_MEMORY_MMAP;
qbuf.m.planes = planes;
@@ -154,6 +155,7 @@ void *parser_thread_func(void *args)
int ret;
int used, fs, n;
+ i->mfc.out_buf_flag[0] = 1;
while (!i->error && !i->finish && !i->parser.finished) {
n = 0;
while (n < i->mfc.out_buf_cnt && i->mfc.out_buf_flag[n])
@@ -588,11 +590,6 @@ int main(int argc, char **argv)
return 1;
}
- if (dequeue_output(&inst, &n)) {
- cleanup(&inst);
- return 1;
- }
-
if (inst.fimc.enabled && fimc_setup_output_from_mfc(&inst)) {
cleanup(&inst);
return 1;
@@ -615,7 +612,6 @@ int main(int argc, char **argv)
* is queued before switching streaming on then we need to add the
* following code. Otherwise it could be ommited and it all would be
* handled by the mfc_thread.*/
-
for (n = 0 ; n < inst.mfc.cap_buf_cnt; n++) {
if (mfc_dec_queue_buf_cap(&inst, n)) {