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
62eace23
Commit
62eace23
authored
Jun 06, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put_bits: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
28e4f906
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
put_bits.h
libavcodec/put_bits.h
+3
-3
No files found.
libavcodec/put_bits.h
View file @
62eace23
...
...
@@ -171,7 +171,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value)
static
inline
void
put_sbits
(
PutBitContext
*
pb
,
int
n
,
int32_t
value
)
{
a
ssert
(
n
>=
0
&&
n
<=
31
);
a
v_assert2
(
n
>=
0
&&
n
<=
31
);
put_bits
(
pb
,
n
,
value
&
((
1
<<
n
)
-
1
));
}
...
...
@@ -207,8 +207,8 @@ static inline uint8_t* put_bits_ptr(PutBitContext *s)
*/
static
inline
void
skip_put_bytes
(
PutBitContext
*
s
,
int
n
)
{
a
ssert
((
put_bits_count
(
s
)
&
7
)
==
0
);
a
ssert
(
s
->
bit_left
==
32
);
a
v_assert2
((
put_bits_count
(
s
)
&
7
)
==
0
);
a
v_assert2
(
s
->
bit_left
==
32
);
s
->
buf_ptr
+=
n
;
}
...
...
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