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
1 changed files with 1 additions and 1 deletions

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