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
8f36d4ba
Commit
8f36d4ba
authored
Jan 14, 2007
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 7465 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e8fc9313
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
swf.c
libavformat/swf.c
+4
-13
No files found.
libavformat/swf.c
View file @
8f36d4ba
...
...
@@ -800,6 +800,7 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
}
}
else
if
(
(
tag
==
TAG_STREAMHEAD
||
tag
==
TAG_STREAMHEAD2
)
&&
!
ast
)
{
/* streaming found */
int
sample_rate_code
;
get_byte
(
pb
);
v
=
get_byte
(
pb
);
swf
->
samples_per_frame
=
get_le16
(
pb
);
...
...
@@ -811,20 +812,10 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
if
(
v
&
0x20
)
ast
->
codec
->
codec_id
=
CODEC_ID_MP3
;
ast
->
need_parsing
=
1
;
switch
((
v
>>
2
)
&
0x03
)
{
case
1
:
ast
->
codec
->
sample_rate
=
11025
;
break
;
case
2
:
ast
->
codec
->
sample_rate
=
22050
;
break
;
case
3
:
ast
->
codec
->
sample_rate
=
44100
;
break
;
default:
sample_rate_code
=
(
v
>>
2
)
&
3
;
if
(
!
sample_rate_code
)
return
AVERROR_IO
;
}
ast
->
codec
->
sample_rate
=
11025
<<
(
sample_rate_code
-
1
);
if
(
len
>
4
)
url_fskip
(
pb
,
len
-
4
);
...
...
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