changeset 18666:492c6d674c3e

decoderConfigLen can be larger than 255 bytes
author nicodvb
date Fri, 09 Jun 2006 21:29:18 +0000
parents 3bf8393d0bc2
children 495142cba779
files libmpdemux/parse_mp4.c libmpdemux/parse_mp4.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);  
--- 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 */