Commit c58330248d for ffmpeg
commit c58330248dd58cd40a53b61542038178cfe98436
Author: zhang xingxing <2388969553@qq.com>
Date: Thu Oct 15 04:13:26 2026 +0200
avcodec/vvc/dec: return the error code of a failed frame submission
Fixes: Q85BEVq7MjZZ
Fixes: swarm-Operator-precedence-masks-hardware-frame-submit-error-code-9c3184
Found-by: zhang xingxing <2388969553@qq.com>
Masked decoder error Replicated through UnModified FFmpeg with the decoder log
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
diff --git a/libavcodec/vvc/dec.c b/libavcodec/vvc/dec.c
index f7c51f01a1..c1326fe17c 100644
--- a/libavcodec/vvc/dec.c
+++ b/libavcodec/vvc/dec.c
@@ -1145,14 +1145,14 @@ static int submit_frame(VVCContext *s, VVCFrameContext *fc, AVFrame *output, int
int ret;
if (s->avctx->hwaccel) {
- if (ret = FF_HW_SIMPLE_CALL(s->avctx, end_frame) < 0) {
+ if ((ret = FF_HW_SIMPLE_CALL(s->avctx, end_frame)) < 0) {
av_log(s->avctx, AV_LOG_ERROR,
"Hardware accelerator failed to decode picture\n");
ff_vvc_unref_frame(fc, fc->ref, ~0);
return ret;
}
} else {
- if (ret = ff_vvc_frame_submit(s, fc) < 0) {
+ if ((ret = ff_vvc_frame_submit(s, fc)) < 0) {
ff_vvc_report_frame_finished(fc->ref);
return ret;
}