exynos_omx: multi_thread: Fix the bug of video recording I-frame interval.
authorSeungBeom Kim <sbcrux.kim@samsung.com>
Mon, 27 Aug 2012 05:34:08 +0000 (22:34 -0700)
committerJames Dong <jdong@google.com>
Tue, 28 Aug 2012 00:46:59 +0000 (17:46 -0700)
Before Fix, OpenGOP Recording.
(Return the I-Frame after each 10 frame.)
After Fix, Return the I-Frame after each 30 frame.
(Stagefright has set the I-frame interval 30 frame.)

Change-Id: I6089bdb5ae1b0cf2d999233f39a97c64884b6bb9
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/enc/src/ExynosVideoEncoder.c

index 2273f608cf0a29bba8d11f6954d7ae45a98c22ff..12636726c85c3f9d50f365b82e87d9e84f32fd28 100644 (file)
@@ -402,9 +402,9 @@ static ExynosVideoErrorType MFC_Encoder_Set_EncParam (
 
         /* doesn't have to be set */
         ext_ctrl[31].id = V4L2_CID_MPEG_VIDEO_GOP_CLOSURE;
-        ext_ctrl[31].value = 0;
+        ext_ctrl[31].value = 1;
         ext_ctrl[32].id = V4L2_CID_MPEG_VIDEO_H264_I_PERIOD;
-        ext_ctrl[32].value = 10;
+        ext_ctrl[32].value = 0;
         ext_ctrl[33].id = V4L2_CID_MPEG_VIDEO_VBV_SIZE;
         ext_ctrl[33].value = 0;
         ext_ctrl[34].id = V4L2_CID_MPEG_VIDEO_HEADER_MODE;