[FFmpeg-cvslog] ffplay: flush subtitle codecs as well with null packets

Marton Balint git at videolan.org
Wed Feb 5 14:26:20 CET 2014


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Thu Jan 30 00:55:18 2014 +0100| [23e77f0e33b706ffdcf31a22189a61f1283aaa18] | committer: Marton Balint

ffplay: flush subtitle codecs as well with null packets

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

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

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

diff --git a/ffplay.c b/ffplay.c
index 0e173dc..b161e8c 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2948,6 +2948,8 @@ static int read_thread(void *arg)
                 packet_queue_put_nullpacket(&is->videoq, is->video_stream);
             if (is->audio_stream >= 0)
                 packet_queue_put_nullpacket(&is->audioq, is->audio_stream);
+            if (is->subtitle_stream >= 0)
+                packet_queue_put_nullpacket(&is->subtitleq, is->subtitle_stream);
             SDL_Delay(10);
             eof=0;
             continue;



More information about the ffmpeg-cvslog mailing list