# HG changeset patch # User nicodvb # Date 1149888558 0 # Node ID 492c6d674c3e56792669308e5064b41747ab5dfe # Parent 3bf8393d0bc2df49eb3477faa40a1592362deac7 decoderConfigLen can be larger than 255 bytes diff -r 3bf8393d0bc2 -r 492c6d674c3e libmpdemux/parse_mp4.c --- a/libmpdemux/parse_mp4.c Fri Jun 09 14:43:44 2006 +0000 +++ b/libmpdemux/parse_mp4.c Fri Jun 09 21:29:18 2006 +0000 @@ -39,7 +39,7 @@ int mp4_parse_esds(unsigned char *data, int datalen, esds_t *esds) { /* create memory stream from data */ stream_t *s = new_memory_stream(data, datalen); - uint8_t len; + uint16_t len; #ifdef MP4_DUMPATOM {int i; printf("ESDS Dump (%dbyte):\n", datalen); diff -r 3bf8393d0bc2 -r 492c6d674c3e libmpdemux/parse_mp4.h --- a/libmpdemux/parse_mp4.h Fri Jun 09 14:43:44 2006 +0000 +++ b/libmpdemux/parse_mp4.h Fri Jun 09 21:29:18 2006 +0000 @@ -87,7 +87,7 @@ uint32_t avgBitrate; /* 0x05 DecSpecificDescrTag */ - uint8_t decoderConfigLen; + uint16_t decoderConfigLen; uint8_t *decoderConfig; /* 0x06 SLConfigDescrTag */