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
2e2cab6e
Commit
2e2cab6e
authored
Dec 25, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/rsd: use ff_get_extradata()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fd335aa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
rsd.c
libavformat/rsd.c
+2
-5
No files found.
libavformat/rsd.c
View file @
2e2cab6e
...
...
@@ -104,13 +104,10 @@ static int rsd_read_header(AVFormatContext *s)
/* RSD3GADP is mono, so only alloc enough memory
to store the coeff table for a single channel. */
if
(
ff_alloc_extradata
(
codec
,
32
))
return
AVERROR
(
ENOMEM
);
start
=
avio_rl32
(
pb
);
if
(
avio_read
(
s
->
pb
,
codec
->
extradata
,
32
)
!=
32
)
return
AVERROR
_INVALIDDATA
;
if
(
ff_get_extradata
(
codec
,
s
->
pb
,
32
)
<
0
)
return
AVERROR
(
ENOMEM
)
;
for
(
i
=
0
;
i
<
16
;
i
++
)
AV_WB16
(
codec
->
extradata
+
i
*
2
,
AV_RL16
(
codec
->
extradata
+
i
*
2
));
...
...
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