• wm4's avatar
    avconv: make sure packets put into the muxing FIFO are refcounted · c011beda
    wm4 authored
    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: 's avatarMartin Storsjö <martin@martin.st>
    c011beda
Name
Last commit
Last update
..
Makefile Loading commit data...
avconv.c Loading commit data...
avconv.h Loading commit data...
avconv_filter.c Loading commit data...
avconv_hw.c Loading commit data...
avconv_opt.c Loading commit data...
avconv_qsv.c Loading commit data...
avconv_vda.c Loading commit data...
avplay.c Loading commit data...
avprobe.c Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...