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
8cf3bb26
Commit
8cf3bb26
authored
Sep 05, 2007
by
David Conrad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grammar nits
Originally committed as revision 10364 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cfde5d18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
matroskaenc.c
libavformat/matroskaenc.c
+5
-5
No files found.
libavformat/matroskaenc.c
View file @
8cf3bb26
/*
* Matroska
file
muxer
* Matroska muxer
* Copyright (c) 2007 David Conrad
*
* This file is part of FFmpeg.
...
...
@@ -115,7 +115,7 @@ static void put_ebml_size_unknown(ByteIOContext *pb, int bytes)
}
/**
* Calculate how many bytes are needed to represent a given size in EBML
* Calculate how many bytes are needed to represent a given size in EBML
.
*/
static
int
ebml_size_bytes
(
uint64_t
size
)
{
...
...
@@ -463,13 +463,13 @@ static void get_aac_sample_rates(AVCodecContext *codec, int *sample_rate, int *o
int
sri
;
if
(
codec
->
extradata_size
<
2
)
{
av_log
(
codec
,
AV_LOG_WARNING
,
"no
aac extradata, unable to determine sample
rate
\n
"
);
av_log
(
codec
,
AV_LOG_WARNING
,
"no
AAC extradata, unable to determine sample
rate
\n
"
);
return
;
}
sri
=
((
codec
->
extradata
[
0
]
<<
1
)
&
0xE
)
|
(
codec
->
extradata
[
1
]
>>
7
);
if
(
sri
>
12
)
{
av_log
(
codec
,
AV_LOG_WARNING
,
"
aac
samplerate index out of bounds
\n
"
);
av_log
(
codec
,
AV_LOG_WARNING
,
"
AAC
samplerate index out of bounds
\n
"
);
return
;
}
*
sample_rate
=
aac_sample_rates
[
sri
];
...
...
@@ -478,7 +478,7 @@ static void get_aac_sample_rates(AVCodecContext *codec, int *sample_rate, int *o
if
(
codec
->
extradata_size
==
5
)
{
sri
=
(
codec
->
extradata
[
4
]
>>
3
)
&
0xF
;
if
(
sri
>
12
)
{
av_log
(
codec
,
AV_LOG_WARNING
,
"
aac
output samplerate index out of bounds
\n
"
);
av_log
(
codec
,
AV_LOG_WARNING
,
"
AAC
output samplerate index out of bounds
\n
"
);
return
;
}
*
output_sample_rate
=
aac_sample_rates
[
sri
];
...
...
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