[FFmpeg-cvslog] pngdec: check that format matches too not just dimensions
Michael Niedermayer
git at videolan.org
Fri Nov 9 20:03:52 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 9 19:58:37 2012 +0100| [623cfc93d9ba5790b9b237ce66123bba9fd6a6c7] | committer: Michael Niedermayer
pngdec: check that format matches too not just dimensions
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=623cfc93d9ba5790b9b237ce66123bba9fd6a6c7
---
libavcodec/pngdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index fb4a018..c1b8b08 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -825,6 +825,7 @@ static int decode_frame(AVCodecContext *avctx,
if( !(avpkt->flags & AV_PKT_FLAG_KEY)
&& s->last_picture->width == s->current_picture->width
&& s->last_picture->height== s->current_picture->height
+ && s->last_picture->format== s->current_picture->format
) {
int i, j;
uint8_t *pd = s->current_picture->data[0];
More information about the ffmpeg-cvslog
mailing list