1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

pngdec: check that format matches too not just dimensions

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-11-09 19:58:37 +01:00
parent 02a325cb6f
commit 623cfc93d9

View File

@ -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];