From 72fedc8425196d6ba1e1de47b4c5a037a71f6a60 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Wed, 18 Jul 2007 22:16:08 +0000 Subject: [PATCH] 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 --- libmpdemux/asfheader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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