[FFmpeg-devel] [PATCH] libaformat: fix incorrect handling of incomplete AVBPrint.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Jul 27 20:26:15 EEST 2023


> On 23 Jul 2023, at 14:00, reimar.doeffinger at gmx.de wrote:
> 
> From: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> 
> 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.

Please make any objections or need for more time to review known soon.
Otherwise I plan on pushing in a few days.

Best regards,
Reimar



More information about the ffmpeg-devel mailing list