[FFmpeg-cvslog] ffmpeg: call sub2video_update for end packets.

Nicolas George git at videolan.org
Sat Sep 15 16:24:46 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Sep  9 15:53:21 2012 +0200| [1b9a251438708a3716246b8e3fd63e407175548c] | committer: Nicolas George

ffmpeg: call sub2video_update for end packets.

Without that change, all subtitles will stay until the next one.

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

 ffmpeg.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 4d12f80..45b109b 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];
 



More information about the ffmpeg-cvslog mailing list