ffmpegdec: update for new interlace fields

This commit is contained in:
Wim Taymans 2011-12-19 18:14:27 +01:00
parent 25b9d6e114
commit 9ea5b22de6

View file

@ -1252,9 +1252,9 @@ gst_ffmpegdec_video_negotiate (GstFFMpegDec * ffmpegdec, gboolean force)
/* set the interlaced flag */ /* set the interlaced flag */
if (ffmpegdec->ctx_interlaced) if (ffmpegdec->ctx_interlaced)
info.flags |= GST_VIDEO_FLAG_INTERLACED; info.interlace_mode = GST_VIDEO_INTERLACE_MODE_MIXED;
else else
info.flags &= ~GST_VIDEO_FLAG_INTERLACED; info.interlace_mode = GST_VIDEO_INTERLACE_MODE_PROGRESSIVE;
/* try to find a good framerate */ /* try to find a good framerate */
if (ffmpegdec->in_fps_d) { if (ffmpegdec->in_fps_d) {