From a3b895ae2fca4b3ffeec8dfbfe64710fdf072157 Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Thu, 21 Dec 2023 05:19:19 +0100 Subject: [PATCH] remove the duplicated initialization (#126) --- src/codeccontext.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/codeccontext.h b/src/codeccontext.h index b7c197f9..1bd7c8ac 100644 --- a/src/codeccontext.h +++ b/src/codeccontext.h @@ -227,8 +227,6 @@ class CodecContextBase : public CodecContext2 explicit CodecContextBase(const Codec &codec) : CodecContext2(codec, _direction, _type) { - if (checkCodec(codec, _direction, _type, throws())) - m_raw = avcodec_alloc_context3(codec.raw()); } //