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
c0bc7bd1
Commit
c0bc7bd1
authored
Jan 31, 2012
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swfdec: Simplify sample rate calculation.
parent
52afc971
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
swfdec.c
libavformat/swfdec.c
+1
-4
No files found.
libavformat/swfdec.c
View file @
c0bc7bd1
...
...
@@ -137,10 +137,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
ast
->
codec
->
codec_id
=
ff_codec_get_id
(
swf_audio_codec_tags
,
(
v
>>
4
)
&
15
);
ast
->
need_parsing
=
AVSTREAM_PARSE_FULL
;
sample_rate_code
=
(
v
>>
2
)
&
3
;
if
(
!
sample_rate_code
)
ast
->
codec
->
sample_rate
=
5512
;
else
ast
->
codec
->
sample_rate
=
11025
<<
(
sample_rate_code
-
1
);
ast
->
codec
->
sample_rate
=
44100
>>
(
3
-
sample_rate_code
);
avpriv_set_pts_info
(
ast
,
64
,
1
,
ast
->
codec
->
sample_rate
);
len
-=
4
;
}
else
if
(
tag
==
TAG_VIDEOFRAME
)
{
...
...
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