You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Merge commit 'a81cad8f86d1feb7e4bfae29e43f3e994935a5c7'
* commit 'a81cad8f86d1feb7e4bfae29e43f3e994935a5c7':
pngdec: Stop trying to decode once inflate returns Z_STREAM_END
Conflicts:
libavcodec/pngdec.c
See: 65bf9a44d7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -381,8 +381,10 @@ static int png_decode_idat(PNGDecContext *s, int length)
|
|||||||
s->zstream.avail_out = s->crow_size;
|
s->zstream.avail_out = s->crow_size;
|
||||||
s->zstream.next_out = s->crow_buf;
|
s->zstream.next_out = s->crow_buf;
|
||||||
}
|
}
|
||||||
if (ret == Z_STREAM_END)
|
if (ret == Z_STREAM_END && s->zstream.avail_in > 0) {
|
||||||
break;
|
av_log(NULL, AV_LOG_WARNING, "%d undecompressed bytes left in buffer\n", s->zstream.avail_in);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user