Browse Source

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

Fixes Ticket2618

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
3b58ab4c5f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/pngdec.c

+ 1
- 1
libavcodec/pngdec.c 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


Loading…
Cancel
Save