[FFmpeg-devel] [PATCH 2/2] avformat/mxfdec: add support for getting product version number metadata

Marton Balint cus at passwd.hu
Sat Feb 20 01:18:00 EET 2021


Signed-off-by: Marton Balint <cus at passwd.hu>
---
 libavformat/mxfdec.c                 | 3 +++
 tests/ref/fate/mxf-d10-user-comments | 1 +
 tests/ref/fate/mxf-probe-dnxhd       | 1 +
 3 files changed, 5 insertions(+)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 3ce83dde54..bb00838a3f 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -2788,6 +2788,9 @@ static int mxf_read_identification_metadata(void *arg, AVIOContext *pb, int tag,
     case 0x3C02:
         SET_STR_METADATA(pb, "product_name", str);
         break;
+    case 0x3C03:
+        SET_VERSION_METADATA(pb, "product_version_num", major, minor, tertiary, patch, release, str);
+        break;
     case 0x3C04:
         SET_STR_METADATA(pb, "product_version", str);
         break;
diff --git a/tests/ref/fate/mxf-d10-user-comments b/tests/ref/fate/mxf-d10-user-comments
index 69605d1906..13761fb0ce 100644
--- a/tests/ref/fate/mxf-d10-user-comments
+++ b/tests/ref/fate/mxf-d10-user-comments
@@ -17,6 +17,7 @@ TAG:uid=adab4424-2f25-4dc7-92ff-29bd000c0000
 TAG:generation_uid=adab4424-2f25-4dc7-92ff-29bd000c0001
 TAG:company_name=FATE-company
 TAG:product_name=FATE-test
+TAG:product_version_num=0.0.0.0.0
 TAG:product_version=3.14159
 TAG:application_platform=Lavf
 TAG:product_uid=adab4424-2f25-4dc7-92ff-29bd000c0002
diff --git a/tests/ref/fate/mxf-probe-dnxhd b/tests/ref/fate/mxf-probe-dnxhd
index 8b1add0374..274dcc47d9 100644
--- a/tests/ref/fate/mxf-probe-dnxhd
+++ b/tests/ref/fate/mxf-probe-dnxhd
@@ -177,6 +177,7 @@ TAG:toolkit_version_num=1.1.0.0.0
 TAG:modification_date=2016-09-18T19:25:25.000000Z
 TAG:product_uid=acfbf03a-4f42-a231-d0b7-c06ecd3d4ad7
 TAG:product_version=Unknown version
+TAG:product_version_num=8.6.0.0.1
 TAG:product_name=Avid Media Composer 8.6.3.43955
 TAG:company_name=Avid Technology, Inc.
 TAG:material_package_umid=0x060A2B340101010101010F001300000057DEEA1570665313060E2B347F7F2A80
-- 
2.26.2



More information about the ffmpeg-devel mailing list