Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6fdb4fb0
Commit
6fdb4fb0
authored
16 years ago
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify, and factorize
Originally committed as revision 15062 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0c0c4d64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
mxfenc.c
libavformat/mxfenc.c
+6
-7
No files found.
libavformat/mxfenc.c
View file @
6fdb4fb0
...
...
@@ -338,18 +338,17 @@ static void mxf_write_local_tag_utf16(ByteIOContext *pb, int tag, const char *va
static
void
mxf_write_identification
(
AVFormatContext
*
s
)
{
ByteIOContext
*
pb
=
s
->
pb
;
const
char
*
company
=
"FFmpeg"
;
const
char
*
product
=
"OP1a Muxer"
;
const
char
*
version
;
int
length
,
company_name_len
,
product_name_len
,
version_string_len
;
int
length
;
mxf_write_metadata_key
(
pb
,
0x013000
);
PRINT_KEY
(
s
,
"identification key"
,
pb
->
buf_ptr
-
16
);
company_name_len
=
strlen
(
"FFmpeg"
)
*
2
;
product_name_len
=
strlen
(
"OP1a Muxer"
)
*
2
;
length
=
80
+
company_name_len
+
product_name_len
;
version
=
s
->
streams
[
0
]
->
codec
->
flags
&
CODEC_FLAG_BITEXACT
?
"0.0.0"
:
AV_STRINGIFY
(
LIBAVFORMAT_VERSION
);
length
+=
4
+
strlen
(
version
)
*
2
;
length
=
84
+
(
strlen
(
company
)
+
strlen
(
product
)
+
strlen
(
version
))
*
2
;
// utf-16
klv_encode_ber_length
(
pb
,
length
);
// write uid
...
...
@@ -360,8 +359,8 @@ static void mxf_write_identification(AVFormatContext *s)
mxf_write_local_tag
(
pb
,
16
,
0x3C09
);
mxf_write_uuid
(
pb
,
Identification
,
1
);
mxf_write_local_tag_utf16
(
pb
,
0x3C01
,
"FFmpeg"
);
// Company Name
mxf_write_local_tag_utf16
(
pb
,
0x3C02
,
"OP1a Muxer"
);
// Product Name
mxf_write_local_tag_utf16
(
pb
,
0x3C01
,
company
);
// Company Name
mxf_write_local_tag_utf16
(
pb
,
0x3C02
,
product
);
// Product Name
mxf_write_local_tag_utf16
(
pb
,
0x3C04
,
version
);
// Version String
// write product uid
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment