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:31:17 (GMT)
commit61c78f53245cbbaf6d15c9541a25fdc3209d0177 (patch)
treeebe5ab11311abce837fdb96a35d6e5a688800b07
parentbebb13b5073d5f3118dff5e83db272d2c3a043ad (diff)
Fix a memory leak in mpegts.c
(cherry picked from commit d6d489f4212ad81793164ad29ac4d28819a2c2ae)
-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);