aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2014-01-30 00:55:18 +0100
committerMarton Balint <cus@passwd.hu>2014-02-05 00:00:23 +0100
commit23e77f0e33b706ffdcf31a22189a61f1283aaa18 (patch)
treed6c75ed955863a2c8705880326e12903cb38518d
parentcec6dec7c8b248b101646940af1b0893564dba26 (diff)
downloadffmpeg-23e77f0e33b706ffdcf31a22189a61f1283aaa18.tar.gz
ffplay: flush subtitle codecs as well with null packets
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--ffplay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 0e173dc8a0..b161e8c23a 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;