projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wma: Rename comment_header.
[paraslash.git]
/
wma_afh.c
diff --git
a/wma_afh.c
b/wma_afh.c
index 65795fd8b8e4ac66cc1e3cf1cba8e18d68800636..f1edacf07aa56b2d26e54e54641c1fd3d6bc1f11 100644
(file)
--- a/
wma_afh.c
+++ b/
wma_afh.c
@@
-1,19
+1,12
@@
/*
/*
- * Copyright (C) 2009
-2014 Andre Noll <maan@systemlinux.org
>
+ * Copyright (C) 2009
Andre Noll <maan@tuebingen.mpg.de
>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
/** \file wma_afh.c The audio format handler for WMA files. */
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
/** \file wma_afh.c The audio format handler for WMA files. */
-#include <stdlib.h>
-#include <inttypes.h>
#include <sys/types.h>
#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
#include <regex.h>
#include "para.h"
#include <regex.h>
#include "para.h"
@@
-107,7
+100,7
@@
static char *get_str16(const char *in, int len)
return out;
}
return out;
}
-static const char co
mment
_header[] = {
+static const char co
ntent_description
_header[] = {
0x33, 0x26, 0xb2, 0x75, 0x8E, 0x66, 0xCF, 0x11,
0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c
};
0x33, 0x26, 0xb2, 0x75, 0x8E, 0x66, 0xCF, 0x11,
0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c
};
@@
-134,10
+127,10
@@
static void read_asf_tags(const char *buf, int buf_size, struct taginfo *ti)
const char *p, *end = buf + buf_size, *q;
uint16_t len1, len2, len3, len4;
const char *p, *end = buf + buf_size, *q;
uint16_t len1, len2, len3, len4;
- p = search_pattern(co
mment_header, sizeof(comment_header)
,
- buf, buf_size);
+ p = search_pattern(co
ntent_description_header
,
+
sizeof(content_description_header),
buf, buf_size);
if (!p || p + 34 >= end) {
if (!p || p + 34 >= end) {
- PARA_NOTICE_LOG("co
mment
header not found\n");
+ PARA_NOTICE_LOG("co
ntent description
header not found\n");
goto next;
}
p += 24;
goto next;
}
p += 24;