mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Byte-endian fixes for wma parsing
This commit is contained in:
parent
4e786208ed
commit
d89220fb5e
@ -353,6 +353,7 @@ int wma_parse_header_extension(int fd, int size, MP3FILE *pmp3) {
|
|||||||
if(r_read(fd,&he,sizeof(he)) != sizeof(he))
|
if(r_read(fd,&he,sizeof(he)) != sizeof(he))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
he.data_size = wma_convert_int((unsigned char *)&he.data_size);
|
||||||
bytes_left = he.data_size;
|
bytes_left = he.data_size;
|
||||||
DPRINTF(E_DBG,L_SCAN,"Found header ext of %ld (%ld) bytes\n",he.data_size,size);
|
DPRINTF(E_DBG,L_SCAN,"Found header ext of %ld (%ld) bytes\n",he.data_size,size);
|
||||||
|
|
||||||
@ -363,6 +364,7 @@ int wma_parse_header_extension(int fd, int size, MP3FILE *pmp3) {
|
|||||||
if(r_read(fd,&sh,sizeof(sh)) != sizeof(sh))
|
if(r_read(fd,&sh,sizeof(sh)) != sizeof(sh))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
sh.size = wma_convert_ll((unsigned char *)&sh.size);
|
||||||
pguid = wma_find_guid(sh.objectid);
|
pguid = wma_find_guid(sh.objectid);
|
||||||
if(!pguid) {
|
if(!pguid) {
|
||||||
DPRINTF(E_DBG,L_SCAN," Unknown ext subheader: %02hhx%02hhx"
|
DPRINTF(E_DBG,L_SCAN," Unknown ext subheader: %02hhx%02hhx"
|
||||||
|
Loading…
Reference in New Issue
Block a user