[FFmpeg-trac] #9800(avdevice:new): decklink_dec.cpp captured audio packets are already-freed memory

FFmpeg trac at avcodec.org
Thu Jun 2 09:46:06 EEST 2022


#9800: decklink_dec.cpp captured audio packets are already-freed memory
-------------------------------------+-------------------------------------
             Reporter:               |                     Type:  defect
  liquidblueocean                    |
               Status:  new          |                 Priority:  normal
            Component:  avdevice     |                  Version:
                                     |  unspecified
             Keywords:  decklink     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 This can be seen by simple code inspection.
 While the code calls AddRef on the received videoFrame, it doesn't do it
 for the audioFrame. When it exits the callback made by the DeckLinkAPI,
 that memory will be freed. Thus the avpacket passed on points to freed
 memory. Looks like this bug has been there all the time :(

 How to reproduce:
 {{{
 Any usage of a DeckLink device that captures audio.
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9800>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list