mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avcodec/avcodec: Remove always-false check
avcodec_free_context() only calls ff_codec_close() if there is an AVCodecContext and avcodec_open2() unconditionally dereferences the AVCodecContext*. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user