projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
read_asf_header(): Make it take a const pointer.
[paraslash.git]
/
wma_common.c
diff --git
a/wma_common.c
b/wma_common.c
index 3326cfff6148128f08ebc3b388ee82711a3c9ed5..0df19ae9e0599707338b6c0e2273e4bd69b6d3d1 100644
(file)
--- a/
wma_common.c
+++ b/
wma_common.c
@@
-50,7
+50,7
@@
static int find_audio_stream_info(const char *buf, int len)
return p - buf + 16;
}
return p - buf + 16;
}
-static int read_header_len(char *buf, int len)
+static int read_header_len(c
onst c
har *buf, int len)
{
uint16_t header_len;
{
uint16_t header_len;
@@
-71,10
+71,10
@@
static int read_header_len(char *buf, int len)
* \return Negative on errors, zero if more data is needed in order to read the
* full header, 1 on success.
*/
* \return Negative on errors, zero if more data is needed in order to read the
* full header, 1 on success.
*/
-int read_asf_header(char *buf, int loaded, struct asf_header_info *ahi)
+int read_asf_header(c
onst c
har *buf, int loaded, struct asf_header_info *ahi)
{
int ret;
{
int ret;
- char *start;
+ c
onst c
har *start;
ahi->header_len = read_header_len(buf, loaded);
if (ahi->header_len == 0) /* too short to read header len */
ahi->header_len = read_header_len(buf, loaded);
if (ahi->header_len == 0) /* too short to read header len */