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

Stefano Sabatini git at videolan.org
Sun May 15 12:36:07 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Sat May 14 19:47:55 2011 +0200| [27614b121776aa2b32579808810fb95839627bd9] | committer: Stefano Sabatini

rawdec: propagate pict_type information to the output frame

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

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

diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 385bdf4..bdf5674 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -121,6 +121,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