Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
239a0543
Commit
239a0543
authored
Dec 25, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/westwood_vqa: use ff_get_extradata()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6fb29535
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
westwood_vqa.c
libavformat/westwood_vqa.c
+1
-5
No files found.
libavformat/westwood_vqa.c
View file @
239a0543
...
...
@@ -101,13 +101,9 @@ static int wsvqa_read_header(AVFormatContext *s)
avio_seek
(
pb
,
20
,
SEEK_SET
);
/* the VQA header needs to go to the decoder */
if
(
ff_
alloc_extradata
(
st
->
codec
,
VQA_HEADER_SIZE
)
)
if
(
ff_
get_extradata
(
st
->
codec
,
pb
,
VQA_HEADER_SIZE
)
<
0
)
return
AVERROR
(
ENOMEM
);
header
=
(
uint8_t
*
)
st
->
codec
->
extradata
;
if
(
avio_read
(
pb
,
st
->
codec
->
extradata
,
VQA_HEADER_SIZE
)
!=
VQA_HEADER_SIZE
)
{
return
AVERROR
(
EIO
);
}
st
->
codec
->
width
=
AV_RL16
(
&
header
[
6
]);
st
->
codec
->
height
=
AV_RL16
(
&
header
[
8
]);
fps
=
header
[
12
];
...
...
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