fix null pointer check in add_subtitles,

patch by Konstantin G. Khlebikov % koct9i A gmail P com %


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19474 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
gpoirier 2006-08-21 09:28:01 +00:00
parent 3fb54d2e99
commit 2029141cf3
1 changed files with 1 additions and 1 deletions

View File

@ -814,7 +814,7 @@ void add_subtitles(char *filename, float fps, int silent)
#ifdef USE_ASS
if (ass_enabled)
asst = ass_read_file(filename);
if (ass_enabled && !asst)
if (ass_enabled && subd && !asst)
asst = ass_read_subdata(subd, fps);
if (!asst && !subd && !silent)