Skip to content

Commit 14c730d

Browse files
author
Valentin Noel
committed
StreamTranscoder: calls the Frame clear() method instead of calling directly the av_frame_unref function
And removes redundant documentation
1 parent 6ab2b3c commit 14c730d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,7 @@ bool StreamTranscoder::processTranscode()
550550
LOG_DEBUG("Convert")
551551
_transform->convert(*_filteredData, *_transformedData);
552552

553-
// free the filtered AVFrame now it has been converted into another one
554-
// @see the av_buffersink_get_frame documentation
555-
av_frame_unref(&_filteredData->getAVFrame());
553+
_filteredData->clear();
556554

557555
LOG_DEBUG("Encode")
558556
_outputEncoder->encodeFrame(*_transformedData, data);

0 commit comments

Comments
 (0)