1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

pngdec: dont treat mpng like png with key and non keyframes

Fixes Ticket2618

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-06-04 20:34:38 +02:00
parent 3b491c5a50
commit 3b58ab4c5f

View File

@ -821,7 +821,7 @@ static int decode_frame(AVCodecContext *avctx,
/* handle p-frames only if a predecessor frame is available */
if (s->prev->data[0]) {
if ( !(avpkt->flags & AV_PKT_FLAG_KEY)
if ( !(avpkt->flags & AV_PKT_FLAG_KEY) && avctx->codec_tag != AV_RL32("MPNG")
&& s->prev->width == p->width
&& s->prev->height== p->height
&& s->prev->format== p->format