[FFmpeg-cvslog] avformat/hls: Remove redundant resetting of AVPacket
Andreas Rheinhardt
git at videolan.org
Tue Aug 18 15:14:21 EEST 2020
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Fri Aug 14 22:36:22 2020 +0200| [8c91b5c48a6bf22359d7565f94a12adae24e4719] | committer: Andreas Rheinhardt
avformat/hls: Remove redundant resetting of AVPacket
av_read_frame() already returns blank packets on error.
Reviewed-by: Steven Liu <lingjiujianke at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c91b5c48a6bf22359d7565f94a12adae24e4719
---
libavformat/hls.c | 1 -
1 file changed, 1 deletion(-)
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. */
More information about the ffmpeg-cvslog
mailing list