mpegts: Share the cleanup code between the demuxer and lavf-internal parser functions
authorMartin Storsjö <martin@martin.st>
Sat, 19 Jan 2013 23:59:08 +0000 (01:59 +0200)
committerMartin Storsjö <martin@martin.st>
Sun, 20 Jan 2013 16:14:17 +0000 (18:14 +0200)
commita717f9904227d7979473bad40c50eb40af41d01d
treee0e96bb7802af2bb2a88d52288ba685cf08e07e1
parent21f5c24b80caae36fb23c7743081bd8dd807cf0b
mpegts: Share the cleanup code between the demuxer and lavf-internal parser functions

The lavf-internal parser functions are used when receiving
mpegts over RTP. This fixes memory leaks in this setup.

The normal mpegts demuxer close function was updated in ec7d0d2e in
2004 to fix leaks, but the parsing function used for RTP wasn't
updated and has been leaking ever since.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/mpegts.c