[FFmpeg-devel] [PATCH] hevc: Fix memory leak related to a53_caption data
wkelleher at gogoair.com
Fri Apr 8 23:17:56 CEST 2016
On 04/08, Michael Niedermayer wrote:
> > The a53_caption buffer is normally realloc'd when each sei_nal is
> > parsed, and then freed after it gets written to the output frame's
> > side data in hevc_frame_start.
> and if an error happens between it leaks ?
If an error occurred after sei nal parsing but before the data was
written to the output frame's side_data, it would just stay on the
context and get appended to when the following frame's sei nals get
parsed, and then the combined caption data of two frames would be
attached to the second output frame, I think.
> Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> Republics decline into democracies and democracies degenerate into
> despotisms. -- Aristotle
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
More information about the ffmpeg-devel