Commit 9fd5e75b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'accde1bd'

* commit 'accde1bd':
  vc1_parser: Set field_order.
  mpegvideo_parser: Set field_order.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 6fc58a8c accde1bd
...@@ -118,6 +118,14 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s, ...@@ -118,6 +118,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;
} }
......
...@@ -88,6 +88,11 @@ static void vc1_extract_headers(AVCodecParserContext *s, AVCodecContext *avctx, ...@@ -88,6 +88,11 @@ static void vc1_extract_headers(AVCodecParserContext *s, AVCodecContext *avctx,
} }
} }
if (vpc->v.broadcast && vpc->v.interlace && !vpc->v.psf)
s->field_order = vpc->v.tff ? AV_FIELD_TT : 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