mpeg4decode: Prevent skipping of non-VOP coded frames
authorKarthik Ramanan <a0393906@ti.com>
Fri, 22 Apr 2016 10:58:13 +0000 (16:28 +0530)
committerKarthik Ramanan <a0393906@ti.com>
Fri, 22 Apr 2016 10:58:13 +0000 (16:28 +0530)
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
src/gstducatimpeg4dec.c

index 783f61757c78cf615796cdd8b40758703f12880f..5aaae70ec10f7046b7b9ec4d24f3fb0ca0053251 100644 (file)
@@ -324,6 +324,11 @@ gst_ducati_mpeg4dec_push_input (GstDucatiVidDec * vdec, GstBuffer * buf)
        * threshold
        */
       skip = !is_vop_coded (self, in + SC_SZ + 1, insize - SC_SZ - 1);
+      /* Since this plugin is not handling such frames and triggering
+       * a repeat frame, we should not skip pushing this to the codec.
+       * However, we need to revisit this loop at a later time and
+       * identify a better solution */
+      skip = 0;
       if (skip)
         GST_DEBUG_OBJECT (self, "skipping non-coded VOP");
     } else if (start_code == UD_START_CODE) {