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
b35477a2
Commit
b35477a2
authored
Jul 31, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use av_get_bits_per_sample() for mBitsPerChannel in caf.
parent
7747a091
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cafenc.c
libavformat/cafenc.c
+1
-1
No files found.
libavformat/cafenc.c
View file @
b35477a2
...
@@ -139,7 +139,7 @@ static int caf_write_header(AVFormatContext *s)
...
@@ -139,7 +139,7 @@ static int caf_write_header(AVFormatContext *s)
avio_wb32
(
pb
,
enc
->
block_align
);
//< mBytesPerPacket
avio_wb32
(
pb
,
enc
->
block_align
);
//< mBytesPerPacket
avio_wb32
(
pb
,
samples_per_packet
(
enc
->
codec_id
,
enc
->
channels
));
//< mFramesPerPacket
avio_wb32
(
pb
,
samples_per_packet
(
enc
->
codec_id
,
enc
->
channels
));
//< mFramesPerPacket
avio_wb32
(
pb
,
enc
->
channels
);
//< mChannelsPerFrame
avio_wb32
(
pb
,
enc
->
channels
);
//< mChannelsPerFrame
avio_wb32
(
pb
,
enc
->
bits_per_coded_sample
);
//< mBitsPerChannel
avio_wb32
(
pb
,
av_get_bits_per_sample
(
enc
->
codec_id
));
//< mBitsPerChannel
if
(
enc
->
channel_layout
)
{
if
(
enc
->
channel_layout
)
{
ffio_wfourcc
(
pb
,
"chan"
);
ffio_wfourcc
(
pb
,
"chan"
);
...
...
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