You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Forward interlaced field information from mov to v210 decoder.
Reported and tested by Dave Rice. Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
This commit is contained in:
committed by
Carl Eugen Hoyos
parent
b4bd21b7fe
commit
84e345b38e
@@ -146,6 +146,13 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
|
||||
v += pic->linesize[2] / 2 - avctx->width / 2;
|
||||
}
|
||||
|
||||
if (avctx->field_order > AV_FIELD_PROGRESSIVE) {
|
||||
/* we have interlaced material flagged in container */
|
||||
pic->interlaced_frame = 1;
|
||||
if (avctx->field_order == AV_FIELD_TT || avctx->field_order == AV_FIELD_TB)
|
||||
pic->top_field_first = 1;
|
||||
}
|
||||
|
||||
*got_frame = 1;
|
||||
|
||||
return avpkt->size;
|
||||
|
Reference in New Issue
Block a user