Message ID | 20240503215502.1509887-1-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | e9bb586543d83fe0ed901834b853b6d64e327529 |
Headers | show |
Series | [FFmpeg-devel,1/5] avcodec/decode: decode_simple_internal() only implements audio and video | expand |
On Fri, May 03, 2024 at 11:54:58PM +0200, Michael Niedermayer wrote: > Fixes: CID1538861 Uninitialized scalar variable > > Sponsored-by: Sovereign Tech Fund > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/decode.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) will apply what remains from this patchset [...]
diff --git a/libavcodec/decode.c b/libavcodec/decode.c index d031b1ca176..900b0c07a35 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);
Fixes: CID1538861 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/decode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)