[FFmpeg-devel] [PATCH] mpegts.c: fix minor memory leak

Jindrich Makovicka makovick
Mon Nov 10 15:04:27 CET 2008


there is a small memory leak in the MPEG-TS stream detection code:

When auto_guess is used in the MPEG-TS demuxer, PESContext structures
which do not really belong to PES streams are not freed at the end,
because they do not get referenced by the AVStreams.

The attached patch fixes the leak by freeing all PESContexts without a
corresponding stream.

Jindrich Makovicka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpegts2.diff
Type: text/x-diff
Size: 612 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081110/d48f97e6/attachment.diff>

More information about the ffmpeg-devel mailing list