Skip to content

Commit a01e09a

Browse files
author
Clement Champetier
committed
FormatContext: set context to NULL after free
1 parent 58621e7 commit a01e09a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AvTranscoder/option/FormatContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ FormatContext::~FormatContext()
4242
avformat_close_input( reinterpret_cast<AVFormatContext**>( &_avContext ) );
4343
else
4444
avformat_free_context( &getAVFormatContext() );
45+
_avContext = NULL;
4546
}
4647

4748
void FormatContext::findStreamInfo( AVDictionary** options )

0 commit comments

Comments
 (0)