aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/decode.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-05-03 21:51:42 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-05-13 03:40:18 +0200
commite9bb586543d83fe0ed901834b853b6d64e327529 (patch)
tree81ddb1ca3b16687e96e91a0b9956954a1ebbe0fa /libavcodec/decode.c
parent96c116254527cc40b386f14b77e17fbe2388d5da (diff)
downloadffmpeg-e9bb586543d83fe0ed901834b853b6d64e327529.tar.gz
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@niedermayer.cc>
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r--libavcodec/decode.c3
1 files changed, 2 insertions, 1 deletions
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);