Skip to content

Commit 6954832

Browse files
author
Clement Champetier
committed
ICodec: refactor how to free the AVCodecContext
* Same behavior as before. * But this call is explicitly mention in the documentation.
1 parent 6e4d7d7 commit 6954832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/codec/ICodec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ICodec::~ICodec()
4949
if(!_isCodecContextAllocated)
5050
return;
5151

52-
av_free(_avCodecContext);
52+
avcodec_free_context(&_avCodecContext);
5353
_avCodecContext = NULL;
5454
}
5555

0 commit comments

Comments
 (0)