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
21e3c26c
Commit
21e3c26c
authored
Oct 25, 2006
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mp3 in swf decoding
Originally committed as revision 6792 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
4cbed916
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
swf.c
libavformat/swf.c
+3
-1
No files found.
libavformat/swf.c
View file @
21e3c26c
...
...
@@ -854,6 +854,7 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
}
ast
->
codec
->
codec_type
=
CODEC_TYPE_AUDIO
;
ast
->
codec
->
codec_id
=
CODEC_ID_MP3
;
ast
->
need_parsing
=
1
;
}
}
else
{
url_fskip
(
pb
,
len
);
...
...
@@ -896,7 +897,8 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
st
=
s
->
streams
[
i
];
if
(
st
->
id
==
1
)
{
av_get_packet
(
pb
,
pkt
,
len
);
url_fskip
(
pb
,
4
);
av_get_packet
(
pb
,
pkt
,
len
-
4
);
pkt
->
stream_index
=
st
->
index
;
return
pkt
->
size
;
}
...
...
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