From d3197d7e09065c9dd522f0c5d346d4e8edc6ac36 Mon Sep 17 00:00:00 2001 From: faust3 Date: Fri, 4 Feb 2005 19:19:42 +0000 Subject: [PATCH] avoid null pointer dereference with .ssa subtitles when the video codec is missing patch by Philip Chong git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14645 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mplayer.c b/mplayer.c index 035d729dbb..0c7b9c4a4a 100644 --- a/mplayer.c +++ b/mplayer.c @@ -4001,7 +4001,7 @@ if ((user_muted | edl_muted) != mixer.muted) mixer_mute(&mixer); #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";