aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/resampling_audio.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-20 08:05:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:58 +0100
commitffb0cad8f9d6ca00cc0959555e4f5879bbc1d241 (patch)
treef69c8d0e583b9bed522a63d0b0065ff5fc3d5c3e /doc/examples/resampling_audio.c
parent2d91ddd2dff1eae935f958135bf3658e7c56e341 (diff)
downloadffmpeg-ffb0cad8f9d6ca00cc0959555e4f5879bbc1d241.tar.gz
avformat/swfenc: Fix memleak upon write_header error
The SWF muxer accepts at most one mp3 audio and at most one VP6F, FLV1 or MJPEG stream. Upon encountering an mp3 stream, a fifo is allocated that leaks if one of the subsequent streams is incompliant with the restrictions mentioned above or if the framerate or samplerate are invalid. This is fixed by adding a deinit function to free said fifo. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit d554aabdaf81fc3ea99783aca42649b43013e796)
Diffstat (limited to 'doc/examples/resampling_audio.c')
0 files changed, 0 insertions, 0 deletions