[FFmpeg-devel] [PATCH] libavformat/flvdec.c: free always the packet after a resync.
michaelni at gmx.at
Tue Sep 29 04:45:09 CEST 2015
On Mon, Sep 28, 2015 at 02:34:45PM -0700, Thierry Foucu wrote:
> In case of resync, always free the packet, but retry only if the resync
> did not get to the end of the file. Otherwise, there is a memory leak when the
> last packet in the file is corrupted.
> libavformat/flvdec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Rewriting code that is poorly written but fully understood is good.
Rewriting code that one doesnt understand is a sign that one is less smart
then the original author, trying to rewrite it will not make it better.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: Digital signature
More information about the ffmpeg-devel