diff options
author | wm4 <nfxjfg@googlemail.com> | 2017-02-08 09:53:26 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2018-08-01 09:55:34 +0300 |
commit | c011beda2611acfeb6f67d4fdf30d1eceed9e62f (patch) | |
tree | bd72babbc3499348517e8e51cbcabc3a6a799f7a /libavcodec/nvdec_vp8.c | |
parent | c1bcd321ea2c2ae1765a1e64f03278712221d726 (diff) | |
download | ffmpeg-c011beda2611acfeb6f67d4fdf30d1eceed9e62f.tar.gz |
avconv: make sure packets put into the muxing FIFO are refcounted
Some callers (like do_subtitle_out(), or do_streamcopy()) call this
with an AVPacket that is not refcounted. This can cause undefined
behavior.
Calling av_packet_move_ref() does not make a packet refcounted if it
isn't yet. (And it can't be made to, because it always succeeds,
and can't return ENOMEM.)
Call av_packet_ref() instead to make sure it's refcounted.
Cc: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/nvdec_vp8.c')
0 files changed, 0 insertions, 0 deletions