diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-18 22:16:08 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-18 22:16:08 +0000 |
commit | 72fedc8425196d6ba1e1de47b4c5a037a71f6a60 (patch) | |
tree | 1456270e83d6ec2d5bc5894b587451a0fbc0aa8c /libmpdemux/asfheader.c | |
parent | 4fe092aa40ba1dab6a2d24fda717f4c329980957 (diff) | |
download | mpv-72fedc8425196d6ba1e1de47b4c5a037a71f6a60.tar.bz2 mpv-72fedc8425196d6ba1e1de47b4c5a037a71f6a60.tar.xz |
fixed bug introduced with the addition of get_ext_stream_properties()
that should close bug #843, too.
Patch by John Donaghy. Explanation:
The issue is that get_ext_stream_properties shouldnt be returning
false when no extended stream properties are found for the stream in
question because that is not an error condition ... extended stream
properties are optional. The only time this function should return
false is when the buffer overrun checks fail.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23823 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/asfheader.c')
-rw-r--r-- | libmpdemux/asfheader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/asfheader.c b/libmpdemux/asfheader.c index 6c755fa307..d4c5d62b45 100644 --- a/libmpdemux/asfheader.c +++ b/libmpdemux/asfheader.c @@ -288,7 +288,7 @@ static int get_ext_stream_properties(char *buf, int buf_len, int stream_num, str return 1; } } - return 0; + return 1; } #define CHECKDEC(l, n) if (((l) -= (n)) < 0) return 0 |