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
482b2042
Commit
482b2042
authored
Dec 25, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/adxdec: use ff_get_extradata()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ee4e8050
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
adxdec.c
libavformat/adxdec.c
+1
-6
No files found.
libavformat/adxdec.c
View file @
482b2042
...
...
@@ -78,13 +78,8 @@ static int adx_read_header(AVFormatContext *s)
c
->
header_size
=
avio_rb16
(
s
->
pb
)
+
4
;
avio_seek
(
s
->
pb
,
-
4
,
SEEK_CUR
);
if
(
ff_
alloc_extradata
(
avctx
,
c
->
header_size
)
)
if
(
ff_
get_extradata
(
avctx
,
s
->
pb
,
c
->
header_size
)
<
0
)
return
AVERROR
(
ENOMEM
);
if
(
avio_read
(
s
->
pb
,
avctx
->
extradata
,
c
->
header_size
)
<
c
->
header_size
)
{
av_freep
(
&
avctx
->
extradata
);
return
AVERROR
(
EIO
);
}
avctx
->
extradata_size
=
c
->
header_size
;
ret
=
avpriv_adx_decode_header
(
avctx
,
avctx
->
extradata
,
avctx
->
extradata_size
,
&
c
->
header_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