diff --git a/libavformat/hls.c b/libavformat/hls.c index f5899f7924..2b39030837 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -702,6 +702,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