diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c index c7f75b3e89..7bcb0295e5 100644 --- a/libavcodec/avcodec.c +++ b/libavcodec/avcodec.c @@ -429,9 +429,6 @@ av_cold void ff_codec_close(AVCodecContext *avctx) { int i; - if (!avctx) - return; - if (avcodec_is_open(avctx)) { AVCodecInternal *avci = avctx->internal;