Commit f43c14d0 authored by Masaki Tanaka's avatar Masaki Tanaka Committed by Anton Khirnov

mpegvideo_parser: Set field_order.

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 507b1e45
...@@ -114,6 +114,14 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s, ...@@ -114,6 +114,14 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s,
s->repeat_pict = 2; 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; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment