[FFmpeg-cvslog] avcodec/snowdec: set AVFrame.pict_type correctly

Michael Niedermayer git at videolan.org
Tue Jan 20 02:05:14 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan 20 01:10:37 2015 +0100| [e069a4bf20828e64ecd58080ad6256035f2dba31] | committer: Michael Niedermayer

avcodec/snowdec: set AVFrame.pict_type correctly

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/snowdec.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c
index 327157b..462ecf1 100644
--- a/libavcodec/snowdec.c
+++ b/libavcodec/snowdec.c
@@ -442,6 +442,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
 
     if((res = ff_snow_frame_start(s)) < 0)
         return res;
+
+    s->current_picture->pict_type = s->keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P;
+
     //keyframe flag duplication mess FIXME
     if(avctx->debug&FF_DEBUG_PICT_INFO)
         av_log(avctx, AV_LOG_ERROR,



More information about the ffmpeg-cvslog mailing list