[FFmpeg-cvslog] rawdec: propagate pict_type information to the output frame

Stefano Sabatini git at videolan.org
Mon Jan 2 03:25:14 CET 2012


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Wed Dec 28 00:50:28 2011 -0500| [28b4af8e38204261df2f22faae6f0a70cacb3565] | committer: Anton Khirnov

rawdec: propagate pict_type information to the output frame

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=28b4af8e38204261df2f22faae6f0a70cacb3565
---

 libavcodec/rawdec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index dcbe23c..427d109 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list