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
f9303ffd
Commit
f9303ffd
authored
Feb 02, 2009
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write req local tags for wav
Originally committed as revision 16931 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
4966b98a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
mxfenc.c
libavformat/mxfenc.c
+23
-2
No files found.
libavformat/mxfenc.c
View file @
f9303ffd
...
@@ -190,6 +190,9 @@ static const MXFLocalTagPair mxf_local_tag_batch[] = {
...
@@ -190,6 +190,9 @@ static const MXFLocalTagPair mxf_local_tag_batch[] = {
{
0x3D06
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x02
,
0x04
,
0x02
,
0x04
,
0x02
,
0x00
,
0x00
,
0x00
,
0x00
}},
/* Sound Essence Compression */
{
0x3D06
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x02
,
0x04
,
0x02
,
0x04
,
0x02
,
0x00
,
0x00
,
0x00
,
0x00
}},
/* Sound Essence Compression */
// MPEG video Descriptor
// MPEG video Descriptor
{
0x8000
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x05
,
0x04
,
0x01
,
0x06
,
0x02
,
0x01
,
0x0B
,
0x00
,
0x00
}},
/* BitRate */
{
0x8000
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x05
,
0x04
,
0x01
,
0x06
,
0x02
,
0x01
,
0x0B
,
0x00
,
0x00
}},
/* BitRate */
// Wave Audio Essence Descriptor
{
0x3D09
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x05
,
0x04
,
0x02
,
0x03
,
0x03
,
0x05
,
0x00
,
0x00
,
0x00
}},
/* Average Bytes Per Second */
{
0x3D0A
,
{
0x06
,
0x0E
,
0x2B
,
0x34
,
0x01
,
0x01
,
0x01
,
0x05
,
0x04
,
0x02
,
0x03
,
0x02
,
0x01
,
0x00
,
0x00
,
0x00
}},
/* Block Align */
};
};
static
void
mxf_write_uuid
(
ByteIOContext
*
pb
,
enum
MXFMetadataSetType
type
,
int
value
)
static
void
mxf_write_uuid
(
ByteIOContext
*
pb
,
enum
MXFMetadataSetType
type
,
int
value
)
...
@@ -679,12 +682,30 @@ static void mxf_write_generic_sound_desc(AVFormatContext *s, AVStream *st, const
...
@@ -679,12 +682,30 @@ static void mxf_write_generic_sound_desc(AVFormatContext *s, AVStream *st, const
static
void
mxf_write_wav_desc
(
AVFormatContext
*
s
,
AVStream
*
st
)
static
void
mxf_write_wav_desc
(
AVFormatContext
*
s
,
AVStream
*
st
)
{
{
mxf_write_generic_sound_desc
(
s
,
st
,
mxf_wav_descriptor_key
,
93
);
ByteIOContext
*
pb
=
s
->
pb
;
mxf_write_generic_sound_desc
(
s
,
st
,
mxf_wav_descriptor_key
,
107
);
mxf_write_local_tag
(
pb
,
2
,
0x3D0A
);
put_be16
(
pb
,
st
->
codec
->
block_align
);
// avg bytes per sec
mxf_write_local_tag
(
pb
,
4
,
0x3D09
);
put_be32
(
pb
,
st
->
codec
->
block_align
*
st
->
codec
->
sample_rate
);
}
}
static
void
mxf_write_aes3_desc
(
AVFormatContext
*
s
,
AVStream
*
st
)
static
void
mxf_write_aes3_desc
(
AVFormatContext
*
s
,
AVStream
*
st
)
{
{
mxf_write_generic_sound_desc
(
s
,
st
,
mxf_aes3_descriptor_key
,
93
);
ByteIOContext
*
pb
=
s
->
pb
;
mxf_write_generic_sound_desc
(
s
,
st
,
mxf_aes3_descriptor_key
,
107
);
mxf_write_local_tag
(
pb
,
2
,
0x3D0A
);
put_be16
(
pb
,
st
->
codec
->
block_align
);
// avg bytes per sec
mxf_write_local_tag
(
pb
,
4
,
0x3D09
);
put_be32
(
pb
,
st
->
codec
->
block_align
*
st
->
codec
->
sample_rate
);
}
}
static
void
mxf_write_package
(
AVFormatContext
*
s
,
enum
MXFMetadataSetType
type
)
static
void
mxf_write_package
(
AVFormatContext
*
s
,
enum
MXFMetadataSetType
type
)
...
...
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