[FFmpeg-cvslog] avcodec/decode: decode_simple_internal() only implements audio and video
Michael Niedermayer
git at videolan.org
Mon May 13 05:26:10 EEST 2024
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri May 3 21:51:42 2024 +0200| [e9bb586543d83fe0ed901834b853b6d64e327529] | committer: Michael Niedermayer
avcodec/decode: decode_simple_internal() only implements audio and video
Fixes: CID1538861 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e9bb586543d83fe0ed901834b853b6d64e327529
---
libavcodec/decode.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index d031b1ca17..900b0c07a3 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -431,7 +431,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
} else if (avctx->codec->type == AVMEDIA_TYPE_AUDIO) {
ret = !got_frame ? AVERROR(EAGAIN)
: discard_samples(avctx, frame, discarded_samples);
- }
+ } else
+ av_assert0(0);
if (ret == AVERROR(EAGAIN))
av_frame_unref(frame);
More information about the ffmpeg-cvslog
mailing list