diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-04 19:19:42 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-04 19:19:42 +0000 |
commit | d3197d7e09065c9dd522f0c5d346d4e8edc6ac36 (patch) | |
tree | c2893f6cd6a99965d4f9fecead769335dfe072d5 /mplayer.c | |
parent | 9507ae9238766452b09636e6b2eda7aef9cedf1b (diff) | |
download | mpv-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |