mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
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:
parent
9507ae9238
commit
d3197d7e09
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user