# HG changeset patch # User faust3 # Date 1107544782 0 # Node ID 36d53262f626efb5b93e63a47aebbf1c4a80e43f # Parent d59cc68ba13bebce6a1a2e899e4c687172a202a6 avoid null pointer dereference with .ssa subtitles when the video codec is missing patch by Philip Chong diff -r d59cc68ba13b -r 36d53262f626 mplayer.c --- 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";