hls: fix EOF check
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 20 Aug 2012 23:47:29 +0000 (01:47 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 20 Aug 2012 23:52:55 +0000 (01:52 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/hls.c

index 41ba434..54e971a 100644 (file)
@@ -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;