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
a345b7f9
Commit
a345b7f9
authored
Mar 29, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmdav: use more unchecked bytestream2 variants where it makes sense
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
67f9bbbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vmdav.c
libavcodec/vmdav.c
+4
-4
No files found.
libavcodec/vmdav.c
View file @
a345b7f9
...
...
@@ -98,7 +98,7 @@ static void lz_unpack(const unsigned char *src, int src_len,
if
(
bytestream2_get_bytes_left
(
&
gb
)
<
4
)
return
;
if
(
bytestream2_peek_le32
(
&
gb
)
==
0x56781234
)
{
bytestream2_
get_le32
(
&
gb
);
bytestream2_
skipu
(
&
gb
,
4
);
qpos
=
0x111
;
speclen
=
0xF
+
3
;
}
else
{
...
...
@@ -123,7 +123,7 @@ static void lz_unpack(const unsigned char *src, int src_len,
if
(
tag
&
0x01
)
{
if
(
d_end
-
d
<
1
||
bytestream2_get_bytes_left
(
&
gb
)
<
1
)
return
;
queue
[
qpos
++
]
=
*
d
++
=
bytestream2_get_byte
(
&
gb
);
queue
[
qpos
++
]
=
*
d
++
=
bytestream2_get_byte
u
(
&
gb
);
qpos
&=
QUEUE_MASK
;
dataleft
--
;
}
else
{
...
...
@@ -173,7 +173,7 @@ static int rle_unpack(const unsigned char *src, unsigned char *dest,
l
=
(
l
&
0x7F
)
*
2
;
if
(
dest_end
-
pd
<
l
||
bytestream2_get_bytes_left
(
&
gb
)
<
l
)
return
bytestream2_tell
(
&
gb
);
bytestream2_get_buffer
(
&
gb
,
pd
,
l
);
bytestream2_get_buffer
u
(
&
gb
,
pd
,
l
);
pd
+=
l
;
}
else
{
if
(
dest_end
-
pd
<
i
||
bytestream2_get_bytes_left
(
&
gb
)
<
2
)
...
...
@@ -281,7 +281,7 @@ static void vmd_decode(VmdVideoContext *s, AVFrame *frame)
len
=
(
len
&
0x7F
)
+
1
;
if
(
ofs
+
len
>
frame_width
||
bytestream2_get_bytes_left
(
&
gb
)
<
len
)
return
;
bytestream2_get_buffer
(
&
gb
,
&
dp
[
ofs
],
len
);
bytestream2_get_buffer
u
(
&
gb
,
&
dp
[
ofs
],
len
);
ofs
+=
len
;
}
else
{
/* interframe pixel copy */
...
...
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