dvdec: set bottom field first on PAL interlaced content, not top field first
authorZaheer Merali <zaheerabbas@merali.org>
Fri, 14 Aug 2009 12:34:53 +0000 (13:34 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 14 Aug 2009 12:34:53 +0000 (13:34 +0100)
DV interlaced content is always bottom field first. Fixes #591712.

ext/dv/gstdvdec.c

index 550b99d..307b76e 100644 (file)
@@ -468,11 +468,7 @@ gst_dvdec_chain (GstPad * pad, GstBuffer * buf)
   dv_decode_full_frame (dvdec->decoder, inframe,
       e_dv_color_yuv, outframe_ptrs, outframe_pitches);
 
-  if (dvdec->PAL) {
-    GST_BUFFER_FLAG_SET (outbuf, GST_VIDEO_BUFFER_TFF);
-  } else {
-    GST_BUFFER_FLAG_UNSET (outbuf, GST_VIDEO_BUFFER_TFF);
-  }
+  GST_BUFFER_FLAG_UNSET (outbuf, GST_VIDEO_BUFFER_TFF);
 
   GST_BUFFER_OFFSET (outbuf) = GST_BUFFER_OFFSET (buf);
   GST_BUFFER_OFFSET_END (outbuf) = GST_BUFFER_OFFSET_END (buf);