diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
| commit | f7813a5324be39d13ab536c245d15dfc602a7849 (patch) | |
| tree | fad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/v210dec.c | |
| parent | b7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff) | |
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/v210dec.c')
| -rw-r--r-- | ffmpeg/libavcodec/v210dec.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ffmpeg/libavcodec/v210dec.c b/ffmpeg/libavcodec/v210dec.c index 42e25cc..ae03952 100644 --- a/ffmpeg/libavcodec/v210dec.c +++ b/ffmpeg/libavcodec/v210dec.c @@ -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; @@ -167,12 +174,12 @@ static const AVClass v210dec_class = { AVCodec ff_v210_decoder = { .name = "v210", + .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_V210, .priv_data_size = sizeof(V210DecContext), .init = decode_init, .decode = decode_frame, .capabilities = CODEC_CAP_DR1, - .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), .priv_class = &v210dec_class, }; |
