From be7beecbe3e7eb2a42456087765ca2a415480dc0 Mon Sep 17 00:00:00 2001 From: Mr-Ojii Date: Wed, 30 Mar 2022 03:49:51 +0900 Subject: [PATCH] description: Fix access violation. Fix access violation when accessing MDCV box --- codecs/description.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codecs/description.c b/codecs/description.c index 7dbf7445..8f8b067d 100644 --- a/codecs/description.c +++ b/codecs/description.c @@ -301,6 +301,10 @@ static int isom_initialize_structured_codec_specific_data( lsmash_codec_specific specific->size = sizeof(lsmash_qt_audio_format_specific_flags_t); specific->destruct = lsmash_free; break; + case LSMASH_CODEC_SPECIFIC_DATA_TYPE_QT_VIDEO_MASTERING_DISPLAY_COLOR_VOLUME: + specific->size = sizeof(lsmash_qt_mastering_display_color_volume_t); + specific->destruct = lsmash_free; + break; case LSMASH_CODEC_SPECIFIC_DATA_TYPE_CODEC_GLOBAL_HEADER : specific->size = sizeof(lsmash_codec_global_header_t); specific->destruct = global_destruct_specific_data;