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
This commit is contained in:
faust3 2005-02-04 19:19:42 +00:00
parent 9507ae9238
commit d3197d7e09
1 changed files with 1 additions and 1 deletions

View File

@ -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";