diff options
author | Masaki Tanaka <maki.rxrz@gmail.com> | 2013-04-09 16:43:08 +0900 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-05-03 08:20:11 +0200 |
commit | f43c14d0467f8095b31babcd337e3547852a82a0 (patch) | |
tree | 6982b02d8d15f260f60ba3eacc202bd4c0f5e790 /libavcodec/mpegvideo_parser.c | |
parent | 507b1e454cf9953da3e18f33c9bd1fca78c97cb5 (diff) | |
download | ffmpeg-f43c14d0467f8095b31babcd337e3547852a82a0.tar.gz |
mpegvideo_parser: Set field_order.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/mpegvideo_parser.c')
-rw-r--r-- | libavcodec/mpegvideo_parser.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_parser.c b/libavcodec/mpegvideo_parser.c index 5364acf92a..3219c10977 100644 --- a/libavcodec/mpegvideo_parser.c +++ b/libavcodec/mpegvideo_parser.c @@ -114,6 +114,14 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s, s->repeat_pict = 2; } } + + if (!pc->progressive_sequence) { + if (top_field_first) + s->field_order = AV_FIELD_TT; + else + s->field_order = AV_FIELD_BB; + } else + s->field_order = AV_FIELD_PROGRESSIVE; } break; } |