diff options
author | Peter Ross <pross@xvid.org> | 2009-02-19 12:21:09 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2009-02-19 12:21:09 +0000 |
commit | edf9b2f040b66b0d1096a144f558c73baa3ae6b4 (patch) | |
tree | 3146e059e3479e7242c68dd334eb94936af45de8 /ffplay.c | |
parent | 0e9602ef93255476d8f05b2a4f4ab70fdf1f22ff (diff) | |
download | ffmpeg-edf9b2f040b66b0d1096a144f558c73baa3ae6b4.tar.gz |
FFplay: Stop processing input file when AVERROR_EOF is returned from av_read_frame()
Originally committed as revision 17458 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2098,7 +2098,7 @@ static int decode_thread(void *arg) } ret = av_read_frame(ic, pkt); if (ret < 0) { - if (url_ferror(ic->pb) == 0) { + if (ret != AVERROR_EOF && url_ferror(ic->pb) == 0) { SDL_Delay(100); /* wait for user event */ continue; } else |