summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-04 19:19:42 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-04 19:19:42 +0000
commitd3197d7e09065c9dd522f0c5d346d4e8edc6ac36 (patch)
treec2893f6cd6a99965d4f9fecead769335dfe072d5 /mplayer.c
parent9507ae9238766452b09636e6b2eda7aef9cedf1b (diff)
downloadmpv-d3197d7e09065c9dd522f0c5d346d4e8edc6ac36.tar.bz2
mpv-d3197d7e09065c9dd522f0c5d346d4e8edc6ac36.tar.xz
avoid null pointer dereference with .ssa subtitles when the video codec is missing patch by Philip Chong <pchong at ic.eecs.berkeley.edu>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14645 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
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";