aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hls.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-14 22:36:22 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-18 07:02:52 +0200
commit8c91b5c48a6bf22359d7565f94a12adae24e4719 (patch)
treee941cd221c7547548adb6126c3d8f631ce92f2be /libavformat/hls.c
parentdfc6a9f07543e3c2bf01baaf8459558365f961d2 (diff)
downloadffmpeg-8c91b5c48a6bf22359d7565f94a12adae24e4719.tar.gz
avformat/hls: Remove redundant resetting of AVPacket
av_read_frame() already returns blank packets on error. Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r--libavformat/hls.c1
1 files changed, 0 insertions, 1 deletions
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. */