mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
3b491c5a50
commit
3b58ab4c5f
@ -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…
Reference in New Issue
Block a user