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

Fixes Ticket2618

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/25/head
Michael Niedermayer 12 years ago
parent 3b491c5a50
commit 3b58ab4c5f
  1. 2
      libavcodec/pngdec.c

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

Loading…
Cancel
Save