[FFmpeg-cvslog] ffplay: check for filter EOF return codes

Marton Balint git at videolan.org
Fri Aug 9 07:03:24 CEST 2013


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Aug  4 21:07:16 2013 +0200| [18be3fac1d04e02bace8fe6e6375b6d14f411514] | committer: Marton Balint

ffplay: check for filter EOF return codes

Fixes ticket #2800.

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=18be3fac1d04e02bace8fe6e6375b6d14f411514
---

 ffplay.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ffplay.c b/ffplay.c
index 4b9c636..26a1452 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1956,6 +1956,8 @@ static int video_thread(void *arg)
 
             ret = av_buffersink_get_frame_flags(filt_out, frame, 0);
             if (ret < 0) {
+                if (ret == AVERROR_EOF)
+                    is->video_finished = serial;
                 ret = 0;
                 break;
             }
@@ -2236,6 +2238,8 @@ static int audio_decode_frame(VideoState *is)
                     is->audio_buf_frames_pending = 0;
                     continue;
                 }
+                if (ret == AVERROR_EOF)
+                    is->audio_finished = is->audio_pkt_temp_serial;
                 return ret;
             }
             is->audio_buf_frames_pending = 1;



More information about the ffmpeg-cvslog mailing list