Commit bf606334 authored by Michael Niedermayer's avatar Michael Niedermayer

hls: fix EOF check

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9a199040
...@@ -616,7 +616,7 @@ start: ...@@ -616,7 +616,7 @@ start:
AVStream *st; AVStream *st;
ret = av_read_frame(var->ctx, &var->pkt); ret = av_read_frame(var->ctx, &var->pkt);
if (ret < 0) { if (ret < 0) {
if (!url_feof(&var->pb)) if (!url_feof(&var->pb) && ret != AVERROR_EOF)
return ret; return ret;
reset_packet(&var->pkt); reset_packet(&var->pkt);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment