You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02: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