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
0290074c
Commit
0290074c
authored
Feb 02, 2009
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
factorize common wav local tags
Originally committed as revision 16932 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f9303ffd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
mxfenc.c
libavformat/mxfenc.c
+8
-12
No files found.
libavformat/mxfenc.c
View file @
0290074c
...
...
@@ -680,11 +680,11 @@ static void mxf_write_generic_sound_desc(AVFormatContext *s, AVStream *st, const
put_be32
(
pb
,
st
->
codec
->
bits_per_coded_sample
);
}
static
void
mxf_write_wav_
desc
(
AVFormatContext
*
s
,
AVStream
*
st
)
static
void
mxf_write_wav_
common_desc
(
AVFormatContext
*
s
,
AVStream
*
st
,
const
UID
key
,
unsigned
size
)
{
ByteIOContext
*
pb
=
s
->
pb
;
mxf_write_generic_sound_desc
(
s
,
st
,
mxf_wav_descriptor_key
,
107
);
mxf_write_generic_sound_desc
(
s
,
st
,
key
,
size
);
mxf_write_local_tag
(
pb
,
2
,
0x3D0A
);
put_be16
(
pb
,
st
->
codec
->
block_align
);
...
...
@@ -694,18 +694,14 @@ static void mxf_write_wav_desc(AVFormatContext *s, AVStream *st)
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_
wav
_desc
(
AVFormatContext
*
s
,
AVStream
*
st
)
{
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
);
mxf_write_wav_common_desc
(
s
,
st
,
mxf_wav_descriptor_key
,
107
);
}
// 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
)
{
mxf_write_wav_common_desc
(
s
,
st
,
mxf_aes3_descriptor_key
,
107
);
}
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