diff options
author | Tim Nicholson <Tim.Nicholson@bbc.co.uk> | 2012-10-15 09:47:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-15 18:53:44 +0200 |
commit | 0ee57f8b1476ad39260e97b58af04c5092c2d9ed (patch) | |
tree | 207be2c41d33c9ab40d7a5cd631ed762f25ecad8 /libavcodec/rawdec.c | |
parent | d7d5b5dfc1b6f29646d2c1908c9bac8677f34256 (diff) | |
download | ffmpeg-streaming-0ee57f8b1476ad39260e97b58af04c5092c2d9ed.zip ffmpeg-streaming-0ee57f8b1476ad39260e97b58af04c5092c2d9ed.tar.gz |
rawdec.c: Extract interlace information from quicktime flag if it exisits.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rawdec.c')
-rw-r--r-- | libavcodec/rawdec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index 3496bb0..eb96deb 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -129,6 +129,13 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx) avctx->codec_tag == MKTAG(3, 0, 0, 0) || avctx->codec_tag == MKTAG('W','R','A','W')) context->flip=1; + if (avctx->field_order > AV_FIELD_PROGRESSIVE) { /*we have interlaced material flagged in container */ + avctx->coded_frame->interlaced_frame = 1; + if (avctx->field_order == AV_FIELD_TT || avctx->field_order == AV_FIELD_TB) + avctx->coded_frame->top_field_first = 1; + } + + return 0; } |