Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
107b5f93
Commit
107b5f93
authored
Dec 20, 2007
by
Benjamin Larsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent
Originally committed as revision 11285 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7b76c224
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
flvdec.c
libavformat/flvdec.c
+7
-7
No files found.
libavformat/flvdec.c
View file @
107b5f93
...
@@ -180,13 +180,13 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
...
@@ -180,13 +180,13 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
else
if
(
!
strcmp
(
key
,
"audiosamplerate"
)
&&
acodec
&&
num_val
>=
0
)
{
else
if
(
!
strcmp
(
key
,
"audiosamplerate"
)
&&
acodec
&&
num_val
>=
0
)
{
//some tools, like FLVTool2, write consistently approximate metadata sample rates
//some tools, like FLVTool2, write consistently approximate metadata sample rates
if
(
!
acodec
->
sample_rate
)
{
if
(
!
acodec
->
sample_rate
)
{
switch
((
int
)
num_val
)
{
switch
((
int
)
num_val
)
{
case
44000
:
acodec
->
sample_rate
=
44100
;
break
;
case
44000
:
acodec
->
sample_rate
=
44100
;
break
;
case
22000
:
acodec
->
sample_rate
=
22050
;
break
;
case
22000
:
acodec
->
sample_rate
=
22050
;
break
;
case
11000
:
acodec
->
sample_rate
=
11025
;
break
;
case
11000
:
acodec
->
sample_rate
=
11025
;
break
;
case
5000
:
acodec
->
sample_rate
=
5512
;
break
;
case
5000
:
acodec
->
sample_rate
=
5512
;
break
;
default
:
acodec
->
sample_rate
=
num_val
;
default
:
acodec
->
sample_rate
=
num_val
;
}
}
}
}
}
}
}
}
...
...
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