mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
dfc6a9f075
commit
8c91b5c48a
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user