aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-20 01:10:37 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-20 01:10:37 +0100
commite069a4bf20828e64ecd58080ad6256035f2dba31 (patch)
tree8697913c2f43a89f3364ab30dee05a6e3a43e1b4
parent5c1a8d3b7d3383b8c5a7dcfa08c7b596db3d835e (diff)
downloadffmpeg-e069a4bf20828e64ecd58080ad6256035f2dba31.tar.gz
avcodec/snowdec: set AVFrame.pict_type correctly
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/snowdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c
index 327157b0d2..462ecf1953 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,