Browse Source

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
tags/v0.5
Luca Abeni Diego Biurrun 19 years ago
parent
commit
7d453f4500
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/raw.c

+ 4
- 0
libavcodec/raw.c View File

@@ -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);


Loading…
Cancel
Save