mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-26 00:31:12 +00:00
Merge remote-tracking branch 'cehoyos/master'
* cehoyos/master: Decode png images without iend chunk. Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
52b6db848d
@ -546,6 +546,9 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
if (bytestream2_get_bytes_left(&s->gb) <= 0) {
|
if (bytestream2_get_bytes_left(&s->gb) <= 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "No bytes left\n");
|
av_log(avctx, AV_LOG_ERROR, "No bytes left\n");
|
||||||
|
if ( s->state & PNG_ALLIMAGE
|
||||||
|
&& avctx->strict_std_compliance <= FF_COMPLIANCE_NORMAL)
|
||||||
|
goto exit_loop;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user