mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
avformat/mxf: add platform local tag
Please check the string of platform with below command: ./ffmpeg -i ../fate-suite/mxf/Sony-00001.mxf -c:v copy -c:a copy out.mxf ./ffmpeg -i out.mxf .... application_platform: Lavf (linux) Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
3f8db7eea0
commit
9605307e78
14 changed files with 19 additions and 14 deletions
|
|
@ -752,12 +752,14 @@ static void store_version(AVFormatContext *s){
|
|||
avio_wb16(pb, 0); // release
|
||||
}
|
||||
|
||||
#define PLATFROM_IDENT "Lavf " AV_STRINGIFY((OS_NAME))
|
||||
static void mxf_write_identification(AVFormatContext *s)
|
||||
{
|
||||
MXFContext *mxf = s->priv_data;
|
||||
AVIOContext *pb = s->pb;
|
||||
const char *company = "FFmpeg";
|
||||
const char *product = s->oformat != &ff_mxf_opatom_muxer ? "OP1a Muxer" : "OPAtom Muxer";
|
||||
const char *platform = s->flags & AVFMT_FLAG_BITEXACT ? "Lavf" : PLATFROM_IDENT;
|
||||
const char *version;
|
||||
int length;
|
||||
|
||||
|
|
@ -768,6 +770,7 @@ static void mxf_write_identification(AVFormatContext *s)
|
|||
"0.0.0" : AV_STRINGIFY(LIBAVFORMAT_VERSION);
|
||||
length = 100 +mxf_utf16_local_tag_length(company) +
|
||||
mxf_utf16_local_tag_length(product) +
|
||||
mxf_utf16_local_tag_length(platform) +
|
||||
mxf_utf16_local_tag_length(version);
|
||||
klv_encode_ber_length(pb, length);
|
||||
|
||||
|
|
@ -786,6 +789,7 @@ static void mxf_write_identification(AVFormatContext *s)
|
|||
store_version(s);
|
||||
|
||||
mxf_write_local_tag_utf16(s, 0x3C04, version); // Version String
|
||||
mxf_write_local_tag_utf16(s, 0x3C08, platform); // Platform
|
||||
|
||||
// write product uid
|
||||
mxf_write_local_tag(s, 16, 0x3C05);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue