mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
ffplay seeking because url_feof() not working patch by (Andy Parkins: andyparkins, gmail com)
Originally committed as revision 4404 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3f46995ca5
commit
22e50022f2
2
ffplay.c
2
ffplay.c
@ -1463,7 +1463,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_feof(&ic->pb) && url_ferror(&ic->pb) == 0) {
|
if (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