[FFmpeg-cvslog] hls: fix EOF check
Michael Niedermayer
git at videolan.org
Tue Aug 21 01:56:49 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Aug 21 01:47:29 2012 +0200| [bf606334ad5ba9180d9a13682504bb1d7cb6ba3a] | committer: Michael Niedermayer
hls: fix EOF check
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf606334ad5ba9180d9a13682504bb1d7cb6ba3a
---
libavformat/hls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 41ba434..54e971a 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;
More information about the ffmpeg-cvslog
mailing list