summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-09-09 15:53:21 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-09-15 15:58:42 +0200
commit1b9a251438708a3716246b8e3fd63e407175548c (patch)
tree7da0e05d3986cb99df34e04aab974100ecb910bd /ffmpeg.c
parentf1ca40ee00402102046fc7e59606651930436b0e (diff)
downloadffmpeg-1b9a251438708a3716246b8e3fd63e407175548c.tar.gz
ffmpeg: call sub2video_update for end packets.
Without that change, all subtitles will stay until the next one.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 4d12f80533..45b109b255 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1683,13 +1683,13 @@ static int transcode_subtitles(InputStream *ist, AVPacket *pkt, int *got_output)
FFSWAP(AVSubtitle, subtitle, ist->prev_sub.subtitle);
}
+ sub2video_update(ist, &subtitle, pkt->pts);
+
if (!*got_output || !subtitle.num_rects)
return ret;
rate_emu_sleep(ist);
- sub2video_update(ist, &subtitle, pkt->pts);
-
for (i = 0; i < nb_output_streams; i++) {
OutputStream *ost = output_streams[i];