# HG changeset patch # User diego # Date 1138872253 0 # Node ID 16eff725382f712f824713759b652daa9f16d2c7 # Parent 545342e01885f77c247e5688fc15154be3f41cde Set interlaced_frame and top_field_first according to coded_frame. patch by Luca Abeni, lucabe72 **at&& email ^^dot## it diff -r 545342e01885 -r 16eff725382f raw.c --- a/raw.c Thu Feb 02 02:36:27 2006 +0000 +++ b/raw.c Thu Feb 02 09:24:13 2006 +0000 @@ -121,8 +121,12 @@ 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);