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
183827e6
Commit
183827e6
authored
Nov 19, 2015
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/rsd: reindent after the last commit
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
01c63e69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
rsd.c
libavformat/rsd.c
+13
-13
No files found.
libavformat/rsd.c
View file @
183827e6
...
...
@@ -122,27 +122,27 @@ static int rsd_read_header(AVFormatContext *s)
st
->
duration
=
av_get_audio_frame_duration
(
codec
,
avio_size
(
pb
)
-
start
);
break
;
case
AV_CODEC_ID_ADPCM_THP_LE
:
/* RSD3GADP is mono, so only alloc enough memory
to store the coeff table for a single channel. */
/* RSD3GADP is mono, so only alloc enough memory
to store the coeff table for a single channel. */
start
=
avio_rl32
(
pb
);
start
=
avio_rl32
(
pb
);
if
((
ret
=
ff_get_extradata
(
codec
,
s
->
pb
,
32
))
<
0
)
return
ret
;
if
((
ret
=
ff_get_extradata
(
codec
,
s
->
pb
,
32
))
<
0
)
return
ret
;
if
(
pb
->
seekable
)
st
->
duration
=
av_get_audio_frame_duration
(
codec
,
avio_size
(
pb
)
-
start
);
break
;
case
AV_CODEC_ID_ADPCM_THP
:
codec
->
block_align
=
8
*
codec
->
channels
;
avio_skip
(
s
->
pb
,
0x1A4
-
avio_tell
(
s
->
pb
));
codec
->
block_align
=
8
*
codec
->
channels
;
avio_skip
(
s
->
pb
,
0x1A4
-
avio_tell
(
s
->
pb
));
if
((
ret
=
ff_alloc_extradata
(
st
->
codec
,
32
*
st
->
codec
->
channels
))
<
0
)
return
ret
;
if
((
ret
=
ff_alloc_extradata
(
st
->
codec
,
32
*
st
->
codec
->
channels
))
<
0
)
return
ret
;
for
(
i
=
0
;
i
<
st
->
codec
->
channels
;
i
++
)
{
avio_read
(
s
->
pb
,
st
->
codec
->
extradata
+
32
*
i
,
32
);
avio_skip
(
s
->
pb
,
8
);
}
for
(
i
=
0
;
i
<
st
->
codec
->
channels
;
i
++
)
{
avio_read
(
s
->
pb
,
st
->
codec
->
extradata
+
32
*
i
,
32
);
avio_skip
(
s
->
pb
,
8
);
}
if
(
pb
->
seekable
)
st
->
duration
=
(
avio_size
(
pb
)
-
start
)
/
(
8
*
st
->
codec
->
channels
)
*
14
;
break
;
...
...
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