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
5340c3dd
Commit
5340c3dd
authored
Oct 13, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/westwood_vqa: s/unsigned char/uint8_t & s/unsigned int/uint32_t
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
a807c682
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
westwood_vqa.c
libavformat/westwood_vqa.c
+8
-8
No files found.
libavformat/westwood_vqa.c
View file @
5340c3dd
...
...
@@ -81,10 +81,10 @@ static int wsvqa_read_header(AVFormatContext *s)
WsVqaDemuxContext
*
wsvqa
=
s
->
priv_data
;
AVIOContext
*
pb
=
s
->
pb
;
AVStream
*
st
;
u
nsigned
char
*
header
;
u
nsigned
char
scratch
[
VQA_PREAMBLE_SIZE
];
u
nsigned
in
t
chunk_tag
;
u
nsigned
in
t
chunk_size
;
u
int8_t
*
header
;
u
int8_t
scratch
[
VQA_PREAMBLE_SIZE
];
u
int32_
t
chunk_tag
;
u
int32_
t
chunk_size
;
int
fps
;
/* initialize the video decoder stream */
...
...
@@ -103,7 +103,7 @@ static int wsvqa_read_header(AVFormatContext *s)
/* the VQA header needs to go to the decoder */
if
(
ff_alloc_extradata
(
st
->
codec
,
VQA_HEADER_SIZE
))
return
AVERROR
(
ENOMEM
);
header
=
(
u
nsigned
char
*
)
st
->
codec
->
extradata
;
header
=
(
u
int8_t
*
)
st
->
codec
->
extradata
;
if
(
avio_read
(
pb
,
st
->
codec
->
extradata
,
VQA_HEADER_SIZE
)
!=
VQA_HEADER_SIZE
)
{
return
AVERROR
(
EIO
);
...
...
@@ -166,9 +166,9 @@ static int wsvqa_read_packet(AVFormatContext *s,
WsVqaDemuxContext
*
wsvqa
=
s
->
priv_data
;
AVIOContext
*
pb
=
s
->
pb
;
int
ret
=
-
1
;
u
nsigned
char
preamble
[
VQA_PREAMBLE_SIZE
];
u
nsigned
in
t
chunk_type
;
u
nsigned
in
t
chunk_size
;
u
int8_t
preamble
[
VQA_PREAMBLE_SIZE
];
u
int32_
t
chunk_type
;
u
int32_
t
chunk_size
;
int
skip_byte
;
while
(
avio_read
(
pb
,
preamble
,
VQA_PREAMBLE_SIZE
)
==
VQA_PREAMBLE_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