changeset 3080:16eff725382f libavcodec

Set interlaced_frame and top_field_first according to coded_frame. patch by Luca Abeni, lucabe72 **at&& email ^^dot## it
author diego
date Thu, 02 Feb 2006 09:24:13 +0000
parents 545342e01885
children 4bf348f8e2b1
files raw.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);