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
1139887a
Commit
1139887a
authored
Jan 02, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/acm: use ff_get_extradata()
parent
25c7aa99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
acm.c
libavformat/acm.c
+3
-6
No files found.
libavformat/acm.c
View file @
1139887a
...
...
@@ -44,12 +44,9 @@ static int acm_read_header(AVFormatContext *s)
st
->
codecpar
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
st
->
codecpar
->
codec_id
=
AV_CODEC_ID_INTERPLAY_ACM
;
ff_alloc_extradata
(
st
->
codecpar
,
14
);
if
(
!
st
->
codecpar
->
extradata
)
return
AVERROR
(
ENOMEM
);
ret
=
avio_read
(
s
->
pb
,
st
->
codecpar
->
extradata
,
14
);
if
(
ret
<
10
)
return
ret
<
0
?
ret
:
AVERROR_EOF
;
ret
=
ff_get_extradata
(
s
,
st
->
codecpar
,
s
->
pb
,
14
);
if
(
ret
<
0
)
return
ret
;
st
->
codecpar
->
channels
=
AV_RL16
(
st
->
codecpar
->
extradata
+
8
);
st
->
codecpar
->
sample_rate
=
AV_RL16
(
st
->
codecpar
->
extradata
+
10
);
...
...
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