summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-01-23 11:29:34 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-01-23 11:29:34 (GMT)
commitd6d489f4212ad81793164ad29ac4d28819a2c2ae (patch)
tree4be516be26cefa6747d65020cf35f766495dd620
parent1a65391ed269438ed9ff17846e9a5b926d6142dd (diff)
Fix a memory leak in mpegts.c
-rw-r--r--mythtv/external/FFmpeg/libavformat/mpegts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mythtv/external/FFmpeg/libavformat/mpegts.c b/mythtv/external/FFmpeg/libavformat/mpegts.c
index 1d8fbb5..9721060 100644
--- a/mythtv/external/FFmpeg/libavformat/mpegts.c
+++ b/mythtv/external/FFmpeg/libavformat/mpegts.c
@@ -638,6 +638,7 @@ static void mpegts_push_section(MpegTSFilter *filter, const uint8_t *section, in
if (sect->new_packet && pkt && sect->st) {
int pktLen = section_len + 184; /* Add enough for a complete TS payload. */
sect->new_packet = 0;
+ av_free_packet(pkt);
if (av_new_packet(pkt, pktLen) == 0) {
memcpy(pkt->data, section, section_len);
memset(pkt->data+section_len, 0xff, pktLen-section_len);