From bf606334ad5ba9180d9a13682504bb1d7cb6ba3a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 21 Aug 2012 01:47:29 +0200 Subject: [PATCH] hls: fix EOF check Signed-off-by: Michael Niedermayer --- libavformat/hls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 41ba434e9e..54e971a765 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -616,7 +616,7 @@ start: AVStream *st; ret = av_read_frame(var->ctx, &var->pkt); if (ret < 0) { - if (!url_feof(&var->pb)) + if (!url_feof(&var->pb) && ret != AVERROR_EOF) return ret; reset_packet(&var->pkt); break;