Only set the SYNC_FRAME flag on the first buffer if we need to split the input
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 14 Sep 2012 10:07:18 +0000 (12:07 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 15 Oct 2012 14:28:40 +0000 (16:28 +0200)
sys/androidmedia/gstamcvideodec.c

index 45f51b02214ea06c1d16b8d26022dbd98a1ecb83..11a079383255b0f407b513882993f3fd61ba1b6e 100644 (file)
@@ -1407,9 +1407,6 @@ gst_amc_video_dec_handle_frame (GstVideoDecoder * decoder,
     memcpy (buf->data, GST_BUFFER_DATA (frame->input_buffer) + offset,
         buffer_info.size);
 
-    if (GST_VIDEO_CODEC_FRAME_IS_SYNC_POINT (frame))
-      buffer_info.flags |= BUFFER_FLAG_SYNC_FRAME;
-
     /* Interpolate timestamps if we're passing the buffer
      * in multiple chunks */
     if (offset != 0 && duration != GST_CLOCK_TIME_NONE) {