[FFmpeg-devel] [PATCH] avformat/smoothstreamingenc: check return value of avcodec_parameters_copy()

Marth64 marth64 at proxyid.net
Thu Nov 21 07:24:43 EET 2024


Hi ePirat:

I believe it is safe. ism_free() is invoked as the .deinit procedure
which will free all of the contexts allocated in ism_write_header().
To confirm this I triggered a fault with this condition and saw no
leaks in valgrind. Also if putting a free there on the context, this
appears to end up in double free segfault (proving the theory). So I
think it is good. Please let me know if I missed anything.

Thank you,


More information about the ffmpeg-devel mailing list