diff mencoder.c @ 29668:ecc719c6d7a9

Make update_subtitles work without sh_video for text subtitles. This fixes a crash with e.g. auto-enabled subtitles and -novideo due to command.c calling update_subtitles even without video and is a step toward subtitle support for audio-only files.
author reimar
date Wed, 23 Sep 2009 21:21:58 +0000
parents a373af1e3b24
children 2e3751815a21
line wrap: on
line diff
--- a/mencoder.c	Wed Sep 23 19:21:38 2009 +0000
+++ b/mencoder.c	Wed Sep 23 21:21:58 2009 +0000
@@ -1454,7 +1454,7 @@
  }
  else
 #endif
-    update_subtitles(sh_video, d_dvdsub, 0);
+    update_subtitles(sh_video, sh_video->pts, d_dvdsub, 0);
 
  frame_data = (s_frame_data){ .start = NULL, .in_size = 0, .frame_time = 0., .already_read = 0 };