pngdec: dont treat mpng like png with key and non keyframes
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 4 Jun 2013 18:34:38 +0000 (20:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 4 Jun 2013 18:40:07 +0000 (20:40 +0200)
Fixes Ticket2618

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pngdec.c

index 8b33826..c1fc606 100644 (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