Commit e321403f authored by romansh's avatar romansh

   * fixing a problem with ffplay being stuck (and not responding to
     anything but 'q') when it reaches the end of stream.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3591 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 55cc31ac
......@@ -1439,7 +1439,11 @@ static int decode_thread(void *arg)
}
ret = av_read_frame(ic, pkt);
if (ret < 0) {
break;
if (url_feof(&ic->pb) && url_ferror(&ic->pb) == 0) {
SDL_Delay(100); /* wait for user event */
continue;
} else
break;
}
if (pkt->stream_index == is->audio_stream) {
packet_queue_put(&is->audioq, pkt);
......
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