Commit 0729ee656b for ffmpeg
commit 0729ee656b38c728ab90f48ca96512bf3ddb8575
Author: Zhao Zhili <quinkblack@foxmail.com>
Date: Thu Oct 29 13:20:13 2026 +0800
avformat/mov: demux DJI djmd and dbgi tracks as bin_data
DJI cameras write flight and gimbal data into djmd and dbgi tracks
whose sample entries use a private fourcc under the meta handler.
Map them to bin_data, as is already done for the GoPro gpmd track.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
diff --git a/libavformat/isom.c b/libavformat/isom.c
index 0a2f93d762..09be63aa19 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -81,6 +81,8 @@ const AVCodecTag ff_codec_movsubtitle_tags[] = {
const AVCodecTag ff_codec_movdata_tags[] = {
{ AV_CODEC_ID_BIN_DATA, MKTAG('g', 'p', 'm', 'd') },
+ { AV_CODEC_ID_BIN_DATA, MOV_MP4_DJMD_TAG },
+ { AV_CODEC_ID_BIN_DATA, MOV_MP4_DBGI_TAG },
{ AV_CODEC_ID_ITUT_T35, MKTAG('i', 't', '3', '5') },
{ AV_CODEC_ID_NONE, 0 },
};
diff --git a/libavformat/isom.h b/libavformat/isom.h
index 18c2fe41b9..6230218e37 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -507,6 +507,9 @@ static inline enum AVCodecID ff_mov_get_lpcm_codec_id(int bps, int flags)
#define MOV_MP4_FPCM_TAG MKTAG('f', 'p', 'c', 'm')
#define MOV_MP4_IPCM_TAG MKTAG('i', 'p', 'c', 'm')
+#define MOV_MP4_DJMD_TAG MKTAG('d', 'j', 'm', 'd')
+#define MOV_MP4_DBGI_TAG MKTAG('d', 'b', 'g', 'i')
+
struct MP4TrackKindValueMapping {
int disposition;
const char *value;