Commit 470b5035 authored by diego's avatar diego

Set interlaced_frame and top_field_first according to coded_frame.

patch by Luca Abeni, lucabe72 **at&& email ^^dot## it


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4919 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ed2d290b
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment