rawdec: propagate pict_type information to the output frame
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 28 Dec 2011 05:50:28 +0000 (00:50 -0500)
committerAnton Khirnov <anton@khirnov.net>
Sun, 1 Jan 2012 21:27:04 +0000 (22:27 +0100)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/rawdec.c

index dcbe23c..427d109 100644 (file)
@@ -123,6 +123,7 @@ static int raw_decode(AVCodecContext *avctx,
     AVFrame * frame = (AVFrame *) data;
     AVPicture * picture = (AVPicture *) data;
 
+    frame->pict_type        = avctx->coded_frame->pict_type;
     frame->interlaced_frame = avctx->coded_frame->interlaced_frame;
     frame->top_field_first = avctx->coded_frame->top_field_first;
     frame->reordered_opaque = avctx->reordered_opaque;