diff --git a/libavformat/hls.c b/libavformat/hls.c index 4a3e0d6842..8217c5ede4 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2162,7 +2162,6 @@ static int hls_read_packet(AVFormatContext *s, AVPacket *pkt) if (ret < 0) { if (!avio_feof(&pls->pb) && ret != AVERROR_EOF) return ret; - reset_packet(&pls->pkt); break; } else { /* stream_index check prevents matching picture attachments etc. */