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