diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 34bcb7cc64..ac18544b2e 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -428,7 +428,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);