projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f3f2e0
)
Set AV_PKT_FLAG_KEY in avcodec_decode_video.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 3 Jun 2009 11:23:16 +0000
(11:23 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 3 Jun 2009 11:23:16 +0000
(11:23 +0000)
This fixes decoding of MPNG, which currently is incorrectly decoded as
CorePNG delta frames.
CorePNG can not be correctly decoded via this old API either way.
Originally committed as revision 19079 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
1236fcf
..
e0421fd
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-557,6
+557,8
@@
int attribute_align_arg avcodec_decode_video(AVCodecContext *avctx, AVFrame *pic
av_init_packet(&avpkt);
avpkt.data = buf;
avpkt.size = buf_size;
+ // HACK for CorePNG to decode as normal PNG by default
+ avpkt.flags = AV_PKT_FLAG_KEY;
return avcodec_decode_video2(avctx, picture, got_picture_ptr, &avpkt);
}