summaryrefslogtreecommitdiff
path: root/libavformat/isom.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2018-09-05 17:54:57 -0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2018-09-09 19:52:53 +0100
commitd2047c14c0789ce3059b840472fb96fd8bd854a9 (patch)
tree1ea55b57d75a4976b1099a6771da1becbb5ac23e /libavformat/isom.h
parenta75d805e6b7b3220d14554c50d9d3a32b164d314 (diff)
downloadffmpeg-d2047c14c0789ce3059b840472fb96fd8bd854a9.tar.gz
Use QT format for audio sample descriptors depending on stsd version.
ISOBMFF does not allow AudioSampleEntryV1 in stsd version 0, so assume the descriptor format is QTFF SoundDescriptionV1. ISOBMFF does not define a version 2. This fixes audio decoding for some MP4 files generated with Apple tools. The additional fields present in SoundDescriptionV1/V2 need to be read in order to correctly read additional boxes that contain information required for decoding the stream. Fixes #7376. Also see: https://github.com/HandBrake/HandBrake/issues/1555 Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r--libavformat/isom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h
index f3a7a8633d..e629663949 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -218,6 +218,7 @@ typedef struct MOVStreamContext {
int *extradata_size;
int last_stsd_index;
int stsd_count;
+ int stsd_version;
int32_t *display_matrix;
AVStereo3D *stereo3d;