diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-14 22:36:22 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-18 07:02:52 +0200 |
commit | 8c91b5c48a6bf22359d7565f94a12adae24e4719 (patch) | |
tree | e941cd221c7547548adb6126c3d8f631ce92f2be /libavformat/hls.c | |
parent | dfc6a9f07543e3c2bf01baaf8459558365f961d2 (diff) | |
download | ffmpeg-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.c | 1 |
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. */ |