[FFmpeg-devel] [PATCH] avcodec/vvc/refs: remove dead code
Marvin Scholz
epirat07 at gmail.com
Fri Jun 27 00:49:29 EEST 2025
The ret value is already checked earlier, making this condition
impossible to ever happen.
Fix CID 1648350
---
libavcodec/vvc/refs.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavcodec/vvc/refs.c b/libavcodec/vvc/refs.c
index 79967b77d3..e52cc0c10d 100644
--- a/libavcodec/vvc/refs.c
+++ b/libavcodec/vvc/refs.c
@@ -310,8 +310,6 @@ int ff_vvc_output_frame(VVCContext *s, VVCFrameContext *fc, AVFrame *out, const
ff_vvc_unref_frame(fc, frame, VVC_FRAME_FLAG_OUTPUT | VVC_FRAME_FLAG_BUMPING);
else
ff_vvc_unref_frame(fc, frame, VVC_FRAME_FLAG_OUTPUT);
- if (ret < 0)
- return ret;
av_log(s->avctx, AV_LOG_DEBUG,
"Output frame with POC %d.\n", frame->poc);
--
2.39.5 (Apple Git-154)
More information about the ffmpeg-devel
mailing list