[FFmpeg-trac] #5551(undetermined:new): av_bsf_send_packet can't take ownership on not reference-counted packets
FFmpeg
trac at avcodec.org
Fri May 13 13:03:25 CEST 2016
#5551: av_bsf_send_packet can't take ownership on not reference-counted packets
-------------------------------------+-------------------------------------
Reporter: mrlika | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Because it doesn't know how to release it. And caller also doesn't know
when to delete the packet passed to black-box algorithm.
For not reference-counted packets it is more correct to create referenced-
counted copy of the packet and leave ownership to the caller.
For example av_grow_packet h264_mp4toannexb and h265_mp4toannexb already
call av_grow_packet on input packets that just overwrites pkt->data field
with newly allocated buffer for not reference-counted packets. It leads to
memory leak.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5551>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list