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
f0a3259f
Commit
f0a3259f
authored
Jun 24, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rangecoder.h: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ee51565e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rangecoder.h
libavcodec/rangecoder.h
+4
-4
No files found.
libavcodec/rangecoder.h
View file @
f0a3259f
...
...
@@ -28,8 +28,8 @@
#define AVCODEC_RANGECODER_H
#include <stdint.h>
#include <assert.h>
#include "libavutil/common.h"
#include "libavutil/avassert.h"
typedef
struct
RangeCoder
{
int
low
;
...
...
@@ -82,9 +82,9 @@ static inline int get_rac_count(RangeCoder *c){
static
inline
void
put_rac
(
RangeCoder
*
c
,
uint8_t
*
const
state
,
int
bit
){
int
range1
=
(
c
->
range
*
(
*
state
))
>>
8
;
a
ssert
(
*
state
);
a
ssert
(
range1
<
c
->
range
);
a
ssert
(
range1
>
0
);
a
v_assert2
(
*
state
);
a
v_assert2
(
range1
<
c
->
range
);
a
v_assert2
(
range1
>
0
);
if
(
!
bit
){
c
->
range
-=
range1
;
*
state
=
c
->
zero_state
[
*
state
];
...
...
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