avcodec/exr: fix AVERROR typo

Fixes: out of array read
Fixes: 485866440/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_DEC_fuzzer-4520520419966976

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7e10579f49)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2026-02-22 14:50:41 +01:00
parent 0c98ad41ba
commit 064fab59c7
+1 -1
View File
@@ -1823,7 +1823,7 @@ static int decode_header(EXRContext *s, AVFrame *frame)
s->is_luma = 1;
} else {
avpriv_request_sample(s->avctx, "Uncommon channel combination");
ret = AVERROR(AVERROR_PATCHWELCOME);
ret = AVERROR_PATCHWELCOME;
goto fail;
}