[FFmpeg-devel] [PATCH] libavformat/flvdec.c: free always the packet after a resync.

Michael Niedermayer 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...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150929/a4bb4573/attachment.sig>

More information about the ffmpeg-devel mailing list