Skip to content

Commit d8c2393

Browse files
author
Clement Champetier
committed
OutputFile: fix free avcodec_close
All codecs of library are closed in ICodec class. Avoid double free of avcodec after a copy of an ICodec for example.
1 parent b0628c5 commit d8c2393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ bool OutputFile::endWrap( )
190190
{
191191
throw std::runtime_error( "could not write trailer" );
192192
}
193-
avcodec_close( _stream->codec );
193+
194194
if( !( _formatContext->oformat->flags & AVFMT_NOFILE ) )
195195
{
196196
avio_close( _formatContext->pb );

0 commit comments

Comments
 (0)