summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-18 22:16:08 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-18 22:16:08 +0000
commit72fedc8425196d6ba1e1de47b4c5a037a71f6a60 (patch)
tree1456270e83d6ec2d5bc5894b587451a0fbc0aa8c /libmpdemux
parent4fe092aa40ba1dab6a2d24fda717f4c329980957 (diff)
downloadmpv-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')
-rw-r--r--libmpdemux/asfheader.c2
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