changeset 14644:36d53262f626

avoid null pointer dereference with .ssa subtitles when the video codec is missing patch by Philip Chong <pchong at ic.eecs.berkeley.edu>
author faust3
date Fri, 04 Feb 2005 19:19:42 +0000
parents d59cc68ba13b
children bee741382b37
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Feb 04 18:46:55 2005 +0000
+++ b/mplayer.c	Fri Feb 04 19:19:42 2005 +0000
@@ -4001,7 +4001,7 @@
   
 #ifdef USE_SUB
   // find sub
-  if(subdata && sh_video->pts>0){
+  if(subdata &&  sh_video && sh_video->pts>0){
       float pts=sh_video->pts;
       if(sub_fps==0) sub_fps=sh_video->fps;
       current_module="find_sub";