aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-07-29 11:27:44 +0300
committerMartin Storsjö <martin@martin.st>2013-07-29 20:15:50 +0300
commit06205b5efdcf0bc4c5463bfdd02f09b5f79fc4cd (patch)
tree8c066a928ae5597db14e6381b4b82fde85ab78f5
parenta2b7eeeb06471979ee39fd3075a04633222678a6 (diff)
downloadffmpeg-06205b5efdcf0bc4c5463bfdd02f09b5f79fc4cd.tar.gz
hls: Free packets when skipping packets when seeking
This fixes memory leaks present since 2b3d041cdc. Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/hls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 0c836c7536..9aef5e07f3 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -651,6 +651,8 @@ start:
c->seek_timestamp = AV_NOPTS_VALUE;
break;
}
+ av_free_packet(&var->pkt);
+ reset_packet(&var->pkt);
}
}
/* Check if this stream still is on an earlier segment number, or