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
711e9812
Commit
711e9812
authored
Oct 30, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/h261dec: Use skip_1stop_8data_bits()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
9c284a8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
h261dec.c
libavcodec/h261dec.c
+4
-10
No files found.
libavcodec/h261dec.c
View file @
711e9812
...
...
@@ -125,11 +125,8 @@ static int h261_decode_gob_header(H261Context *h)
}
/* GEI */
while
(
get_bits1
(
&
s
->
gb
)
!=
0
)
{
skip_bits
(
&
s
->
gb
,
8
);
if
(
get_bits_left
(
&
s
->
gb
)
<=
0
)
return
AVERROR_INVALIDDATA
;
}
if
(
skip_1stop_8data_bits
(
&
s
->
gb
)
<
0
)
return
AVERROR_INVALIDDATA
;
if
(
s
->
qscale
==
0
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"qscale has forbidden 0 value
\n
"
);
...
...
@@ -508,11 +505,8 @@ static int h261_decode_picture_header(H261Context *h)
skip_bits1
(
&
s
->
gb
);
/* Reserved */
/* PEI */
while
(
get_bits1
(
&
s
->
gb
)
!=
0
)
{
skip_bits
(
&
s
->
gb
,
8
);
if
(
get_bits_left
(
&
s
->
gb
)
<=
0
)
return
AVERROR_INVALIDDATA
;
}
if
(
skip_1stop_8data_bits
(
&
s
->
gb
)
<
0
)
return
AVERROR_INVALIDDATA
;
/* H.261 has no I-frames, but if we pass AV_PICTURE_TYPE_I for the first
* frame, the codec crashes if it does not contain all I-blocks
...
...
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