Commit 3b58ab4c authored by Michael Niedermayer's avatar Michael Niedermayer

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

Fixes Ticket2618
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3b491c5a
...@@ -821,7 +821,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -821,7 +821,7 @@ static int decode_frame(AVCodecContext *avctx,
/* handle p-frames only if a predecessor frame is available */ /* handle p-frames only if a predecessor frame is available */
if (s->prev->data[0]) { 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->width == p->width
&& s->prev->height== p->height && s->prev->height== p->height
&& s->prev->format== p->format && s->prev->format== p->format
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment