1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/h264dec: make slice header parse errors fatal under AV_EF_EXPLODE

This fixes timeout issues and seems like it was intended
since the line emits an error log.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Marth64 <marth64@proxyid.net>
This commit is contained in:
Dale Curtis
2025-01-07 00:11:49 +00:00
committed by Marth64
parent 33daef5f49
commit 957eb2323a

View File

@ -742,8 +742,10 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size)
nal->type, nal->size_bits); nal->type, nal->size_bits);
} }
if (err < 0) { if (err < 0 && (h->avctx->err_recognition & AV_EF_EXPLODE)) {
av_log(h->avctx, AV_LOG_ERROR, "decode_slice_header error\n"); av_log(h->avctx, AV_LOG_ERROR, "decode_slice_header error\n");
ret = err;
goto end;
} }
} }