diff options
author | Luca Abeni <lucabe72@email.it> | 2006-02-02 09:24:13 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-02-02 09:24:13 +0000 |
commit | 7d453f45008912fe148e23f016b0fd583f6fa30d (patch) | |
tree | f6ec8426e8e0449639a0ff2cc6a4b64ebe576144 /libavcodec | |
parent | 81edbc1d49048adc5dd40ab8d109937f63b8fd73 (diff) | |
download | ffmpeg-7d453f45008912fe148e23f016b0fd583f6fa30d.tar.gz |
Set interlaced_frame and top_field_first according to coded_frame.
patch by Luca Abeni, lucabe72 **at&& email ^^dot## it
Originally committed as revision 4919 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/raw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/raw.c b/libavcodec/raw.c index 8ead17e066..28c3cad54f 100644 --- a/libavcodec/raw.c +++ b/libavcodec/raw.c @@ -121,8 +121,12 @@ static int raw_decode(AVCodecContext *avctx, RawVideoContext *context = avctx->priv_data; int bytesNeeded; + AVFrame * frame = (AVFrame *) data; AVPicture * picture = (AVPicture *) data; + frame->interlaced_frame = avctx->coded_frame->interlaced_frame; + frame->top_field_first = avctx->coded_frame->top_field_first; + /* Early out without copy if packet size == frame size */ if (buf_size == context->length && context->p == context->buffer) { avpicture_fill(picture, buf, avctx->pix_fmt, avctx->width, avctx->height); |