Browse Source

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
tags/n0.8
Michael Chinen Carl Eugen Hoyos 14 years ago
parent
commit
27d97fded3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ffplay.c

+ 2
- 2
ffplay.c View File

@@ -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;


Loading…
Cancel
Save