Skip to content
Snippets Groups Projects
Commit 84e345b3 authored by Tim.Nicholson's avatar Tim.Nicholson Committed by Carl Eugen Hoyos
Browse files

Forward interlaced field information from mov to v210 decoder.


Reported and tested by Dave Rice.

Signed-off-by: default avatarCarl Eugen Hoyos <cehoyos@ag.or.at>
parent b4bd21b7
Branches
Tags
No related merge requests found
...@@ -146,6 +146,13 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, ...@@ -146,6 +146,13 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
v += pic->linesize[2] / 2 - avctx->width / 2; 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; *got_frame = 1;
return avpkt->size; return avpkt->size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment