OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c1a8d3
)
avcodec/snowdec: set AVFrame.pict_type correctly
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Jan 2015 00:10:37 +0000
(
01:10
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Jan 2015 00:10:37 +0000
(
01:10
+0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/snowdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/snowdec.c
b/libavcodec/snowdec.c
index
327157b
..
462ecf1
100644
(file)
--- 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,