1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-05 18:01:59 +02:00

vc1_parser: Set field_order.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Masaki Tanaka 2013-04-09 16:44:40 +09:00 committed by Anton Khirnov
parent f43c14d046
commit accde1bd87

View File

@ -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;
}
}