[FFmpeg-cvslog] avformat/matroskadec: set AVCodecParameters.field_order on progressive video

James Almer git at videolan.org
Wed Sep 28 02:31:36 EEST 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Sep 27 14:48:33 2016 -0300| [29b6c2be291eaa604a409daf7fd8cc4fb8a762cb] | committer: James Almer

avformat/matroskadec: set AVCodecParameters.field_order on progressive video

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29b6c2be291eaa604a409daf7fd8cc4fb8a762cb
---

 libavformat/matroskadec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 7ee1c7a..32b2457 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2281,6 +2281,8 @@ static int matroska_parse_tracks(AVFormatContext *s)
 
             if (track->video.interlaced == MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED)
                 st->codecpar->field_order = mkv_field_order(track->video.field_order);
+            else if (track->video.interlaced == MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE)
+                st->codecpar->field_order = AV_FIELD_PROGRESSIVE;
 
             if (track->video.stereo_mode && track->video.stereo_mode < MATROSKA_VIDEO_STEREOMODE_TYPE_NB)
                 mkv_stereo_mode_display_mul(track->video.stereo_mode, &display_width_mul, &display_height_mul);



More information about the ffmpeg-cvslog mailing list