mirror of
https://github.com/mpv-player/mpv
synced 2025-02-06 07:01:45 +00:00
fix uninitialized pointer value being passed to open_stream, where it is used in comparison.
Patch by Eugeniy Stepanov < eugeni P stepanov A gmail P com > Original Thread: Date: May 23, 2006 10:57 PM Subject: [MPlayer-dev-eng] [BUG][PATCH] uninitialized memory access in subreader.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18706 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1c0280d472
commit
83a9e75c4e
@ -1378,6 +1378,7 @@ sub_data* sub_read_file (char *filename, float fps) {
|
||||
struct subreader *srp;
|
||||
|
||||
if(filename==NULL) return NULL; //qnx segfault
|
||||
i = 0;
|
||||
fd=open_stream (filename, NULL, &i); if (!fd) return NULL;
|
||||
|
||||
sub_format=sub_autodetect (fd, &uses_time);
|
||||
|
Loading…
Reference in New Issue
Block a user