diff options
author | Michael Chinen <mchinen@gmail.com> | 2010-10-09 17:50:17 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-10-09 17:50:17 +0000 |
commit | 27d97fded3319e0ac94e0abcb65a5b96b18e7512 (patch) | |
tree | 2ebcd95e9038599c52dd0bee2ab83ca136d2b465 /ffplay.c | |
parent | c689cccec999576461a6ba933c046069651b0490 (diff) | |
download | ffmpeg-27d97fded3319e0ac94e0abcb65a5b96b18e7512.tar.gz |
Fix ffplay to keep calling av_read_frame even if EOF has been reached.
Patch by Michael Chinen, mchinen gmail
Originally committed as revision 25426 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2605,7 +2605,7 @@ static int decode_thread(void *arg) SDL_Delay(10); continue; } - if(url_feof(ic->pb) || eof) { + if(eof) { if(is->video_stream >= 0){ av_init_packet(pkt); pkt->data=NULL; @@ -2626,7 +2626,7 @@ static int decode_thread(void *arg) } ret = av_read_frame(ic, pkt); if (ret < 0) { - if (ret == AVERROR_EOF) + if (ret == AVERROR_EOF || url_feof(ic->pb)) eof=1; if (url_ferror(ic->pb)) break; |