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
05fc9e40
Commit
05fc9e40
authored
Sep 21, 2011
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swfdec: Add support for sample_rate_code 0 (5512 Hz)
parent
ae2e8971
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
swfdec.c
libavformat/swfdec.c
+3
-2
No files found.
libavformat/swfdec.c
View file @
05fc9e40
...
@@ -136,8 +136,9 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -136,8 +136,9 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
ast
->
need_parsing
=
AVSTREAM_PARSE_FULL
;
ast
->
need_parsing
=
AVSTREAM_PARSE_FULL
;
sample_rate_code
=
(
v
>>
2
)
&
3
;
sample_rate_code
=
(
v
>>
2
)
&
3
;
if
(
!
sample_rate_code
)
if
(
!
sample_rate_code
)
return
AVERROR
(
EIO
);
ast
->
codec
->
sample_rate
=
5512
;
ast
->
codec
->
sample_rate
=
11025
<<
(
sample_rate_code
-
1
);
else
ast
->
codec
->
sample_rate
=
11025
<<
(
sample_rate_code
-
1
);
av_set_pts_info
(
ast
,
64
,
1
,
ast
->
codec
->
sample_rate
);
av_set_pts_info
(
ast
,
64
,
1
,
ast
->
codec
->
sample_rate
);
len
-=
4
;
len
-=
4
;
}
else
if
(
tag
==
TAG_VIDEOFRAME
)
{
}
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