• Reimar Döffinger's avatar
    libavformat: fix incorrect handling of incomplete AVBPrint. · c0f867bf
    Reimar Döffinger authored
    Change some internal APIs a bit to make it harder to make
    such mistakes.
    In particular, have the read chunk functions return an error
    when the result is incomplete.
    This might be less flexible, but since there has been no
    use-case for that so far, avoiding coding mistakes seems better.
    Add a function to queue a AVBPrint directly (ff_subtitles_queue_insert_bprint).
    Also fixes a leak in lrcdec when ff_subtitles_queue_insert fails.
    Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
    c0f867bf
webvttdec.c 7.32 KB