[FFmpeg-trac] #8445(avcodec:closed): memory leak using h264_qsv to encode under certain resolutions
FFmpeg
trac at avcodec.org
Tue Jun 16 21:56:20 EEST 2020
#8445: memory leak using h264_qsv to encode under certain resolutions
------------------------------------+-----------------------------------
Reporter: carlchen | Owner:
Type: defect | Status: closed
Priority: normal | Component: avcodec
Version: git-master | Resolution: invalid
Keywords: qsv | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Changes (by lveilleux):
* status: reopened => closed
* resolution: => invalid
Comment:
*** Correction: the leak is not real :)
Using the proper av_frame_get_buffer to initialize the AVFrame, ref counts
are properly handled and qsvenc releases correctly
I was using some weirdo code that worked for many other cases, but not in
this one. I also ended up padding/aligning height of the AVFrame to make
sure qsvenc was not making unnecessary copies of it to increase
performance. Thanks for your help.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8445#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list