mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
0e9602ef93
commit
edf9b2f040
2
ffplay.c
2
ffplay.c
@ -2098,7 +2098,7 @@ static int decode_thread(void *arg)
|
|||||||
}
|
}
|
||||||
ret = av_read_frame(ic, pkt);
|
ret = av_read_frame(ic, pkt);
|
||||||
if (ret < 0) {
|
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 */
|
SDL_Delay(100); /* wait for user event */
|
||||||
continue;
|
continue;
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user