[FFmpeg-trac] #9800(avdevice:new): decklink_dec.cpp captured audio packets are already-freed memory
FFmpeg
trac at avcodec.org
Thu Jun 2 14:16:27 EEST 2022
#9800: decklink_dec.cpp captured audio packets are already-freed memory
-------------------------------------+-------------------------------------
Reporter: | Owner: (none)
liquidblueocean |
Type: defect | Status: new
Priority: normal | Component: avdevice
Version: unspecified | Resolution:
Keywords: decklink | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by mkver):
avpacket_queue_put() calls av_packet_make_refcounted() on the packet
before putting it into the queue. Because the packet is not already
refcounted, this will make a copy. So everything should be fine. But I
don't have a decklink device at all, so I can't test this and am therefore
not closing it. Have you actually experienced a use-after-free yourself in
the scenario you describe?
(The handling of video avoids copying the data, instead adding
references.)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9800#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list