From 5716298ba77f44fe9ff057295bc394f5338a18a6 Mon Sep 17 00:00:00 2001 From: wanganzhou Date: Thu, 7 Aug 2025 11:50:40 +0000 Subject: [PATCH] add moov front Signed-off-by: wanganzhou --- .../codec_base/libnative_media_codecbase.ndk.json | 4 ++++ multimedia/av_codec/native_avcodec_base.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json b/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json index 737c1d69c..98f900d10 100644 --- a/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json +++ b/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json @@ -431,6 +431,10 @@ "first_introduced": "20", "name": "OH_MD_KEY_VIDEO_ENCODER_ROI_PARAMS" }, + { + "first_introduced": "20", + "name": "OH_MD_KEY_ENABLE_MOOV_FRONT" + }, { "first_introduced": "20", "name": "OH_MD_KEY_SQR_FACTOR" diff --git a/multimedia/av_codec/native_avcodec_base.h b/multimedia/av_codec/native_avcodec_base.h index 222155a1c..7745ac210 100644 --- a/multimedia/av_codec/native_avcodec_base.h +++ b/multimedia/av_codec/native_avcodec_base.h @@ -1114,6 +1114,14 @@ extern const char *OH_MD_KEY_VIDEO_ENCODER_MAX_B_FRAMES; * @since 20 */ extern const char *OH_MD_KEY_VIDEO_ENCODER_ROI_PARAMS; +/** + * + * @brief Key for front moov of the mp4 and m4a media file, value type is int32_t (0 or 1):1 is enabled, 0 otherwise. + * This key may affect the performance of the stop function of the mp4 and m4a muxer. + * @syscap SystemCapability.Multimedia.Media.CodecBase + * @since 20 + */ +extern const char *OH_MD_KEY_ENABLE_MOOV_FRONT; /** * @brief Key for the desired encoding quality, value type is int32_t, this key is only * supported for encoders that are configured in Stable Quality RateControl, the higher -- Gitee