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
d04c17c9
Commit
d04c17c9
authored
Dec 10, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swfdec: cosmetics: fix indentation
parent
e70c5b03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
swfdec.c
libavformat/swfdec.c
+16
-16
No files found.
libavformat/swfdec.c
View file @
d04c17c9
...
...
@@ -180,22 +180,22 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
st
=
s
->
streams
[
i
];
if
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
&&
st
->
id
==
-
1
)
{
if
(
st
->
codec
->
codec_id
==
AV_CODEC_ID_MP3
)
{
avio_skip
(
pb
,
4
);
len
-=
4
;
if
(
len
<=
0
)
goto
skip
;
if
((
res
=
av_get_packet
(
pb
,
pkt
,
len
))
<
0
)
return
res
;
}
else
{
// ADPCM, PCM
if
(
len
<=
0
)
goto
skip
;
if
((
res
=
av_get_packet
(
pb
,
pkt
,
len
))
<
0
)
return
res
;
}
pkt
->
pos
=
pos
;
pkt
->
stream_index
=
st
->
index
;
return
pkt
->
size
;
if
(
st
->
codec
->
codec_id
==
AV_CODEC_ID_MP3
)
{
avio_skip
(
pb
,
4
);
len
-=
4
;
if
(
len
<=
0
)
goto
skip
;
if
((
res
=
av_get_packet
(
pb
,
pkt
,
len
))
<
0
)
return
res
;
}
else
{
// ADPCM, PCM
if
(
len
<=
0
)
goto
skip
;
if
((
res
=
av_get_packet
(
pb
,
pkt
,
len
))
<
0
)
return
res
;
}
pkt
->
pos
=
pos
;
pkt
->
stream_index
=
st
->
index
;
return
pkt
->
size
;
}
}
}
else
if
(
tag
==
TAG_JPEG2
)
{
...
...
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