Skip to content

Commit fd9788a

Browse files
author
Clement Champetier
committed
OutputFile: add comment to explain the av_free_packet
1 parent e739d18 commit fd9788a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ IOutputStream::EWrappingStatus OutputFile::wrap( const CodedData& data, const si
112112

113113
_formatContext.writeFrame( packet );
114114

115+
// free packet.side_data, set packet.data to NULL and packet.size to 0
115116
av_free_packet( &packet );
116117

117118
double currentStreamDuration = _outputStreams.at( streamId )->getStreamDuration();

0 commit comments

Comments
 (0)