[FFmpeg-cvslog] avformat/hls: remove redundant code

Steven Liu git at videolan.org
Wed Apr 18 06:23:43 EEST 2018


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Wed Apr 18 11:22:23 2018 +0800| [223f3dff8cd874143b6d531b2c8f45ad0dc9d9f6] | committer: Steven Liu

avformat/hls: remove redundant code

Suggested-by: Richard Shaffer <rshaffer at tunein.com>
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=223f3dff8cd874143b6d531b2c8f45ad0dc9d9f6
---

 libavformat/hls.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 6893f6d3ca..ffec124818 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -919,9 +919,6 @@ static int read_from_url(struct playlist *pls, struct segment *seg,
         buf_size = FFMIN(buf_size, seg->size - pls->cur_seg_offset);
 
     ret = avio_read(pls->input, buf, buf_size);
-    if (ret != buf_size)
-        av_log(NULL, AV_LOG_ERROR, "Could not read complete segment.\n");
-
     if (ret > 0)
         pls->cur_seg_offset += ret;
 



More information about the ffmpeg-cvslog mailing list