From 623cfc93d9ba5790b9b237ce66123bba9fd6a6c7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 9 Nov 2012 19:58:37 +0100 Subject: pngdec: check that format matches too not just dimensions Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer --- libavcodec/pngdec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/pngdec.c') diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index fb4a018ac8..c1b8b08215 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]; -- cgit v1.2.3