Fixes a crash in the eac3 header parser, add some preliminary work to read atmos in AVFoundation.

This commit is contained in:
Damiano Galassi committed 2018-09-05 15:26:31 +02:00
1 parent 39e523dce0
commit 0e19dccbdf
5 files changed
+92 -25

No files matched your search

+2 -2
View File
@@ -73,7 +73,7 @@ extern "C" {
int frame_length_short;
} MPEG4AudioConfig;
struct eac3_info {
typedef struct eac3_info {
uint8_t *frame;
uint32_t size;
@@ -107,7 +107,7 @@ extern "C" {
uint16_t chan_loc;
/* if there is no dependent substream, then one bit reserved instead */
} substream[1]; /* TODO: support 8 independent substreams */
};
} EAC3Info;
int analyze_ESDS(MPEG4AudioConfig *c, const uint8_t *cookie, uint32_t cookieLen);