avformat/hls: remove redundant code
authorSteven Liu <lq@chinaffmpeg.org>
Wed, 18 Apr 2018 03:22:23 +0000 (11:22 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Wed, 18 Apr 2018 03:22:23 +0000 (11:22 +0800)
Suggested-by: Richard Shaffer <rshaffer@tunein.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hls.c

index 6893f6d..ffec124 100644 (file)
@@ -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;