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
8f4020d8
Commit
8f4020d8
authored
Oct 14, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svq1dec: check return value of get_bits1() in more common way
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
e2bf1082
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
svq1dec.c
libavcodec/svq1dec.c
+4
-4
No files found.
libavcodec/svq1dec.c
View file @
8f4020d8
...
...
@@ -100,7 +100,7 @@ static const uint8_t string_table[256] = {
break; \
} \
/* divide block if next bit set */
\
if (
get_bits1(bitbuf) == 0)
\
if (
!get_bits1(bitbuf))
\
break; \
/* add child nodes */
\
list[n++] = list[i]; \
...
...
@@ -564,7 +564,7 @@ static int svq1_decode_frame_header(GetBitContext *bitbuf, MpegEncContext *s)
}
/* unknown fields */
if
(
get_bits1
(
bitbuf
)
==
1
)
{
if
(
get_bits1
(
bitbuf
))
{
skip_bits1
(
bitbuf
);
/* use packet checksum if (1) */
skip_bits1
(
bitbuf
);
/* component checksums after image data if (1) */
...
...
@@ -572,13 +572,13 @@ static int svq1_decode_frame_header(GetBitContext *bitbuf, MpegEncContext *s)
return
AVERROR_INVALIDDATA
;
}
if
(
get_bits1
(
bitbuf
)
==
1
)
{
if
(
get_bits1
(
bitbuf
))
{
skip_bits1
(
bitbuf
);
skip_bits
(
bitbuf
,
4
);
skip_bits1
(
bitbuf
);
skip_bits
(
bitbuf
,
2
);
while
(
get_bits1
(
bitbuf
)
==
1
)
while
(
get_bits1
(
bitbuf
))
skip_bits
(
bitbuf
,
8
);
}
...
...
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