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
e451c26c
Commit
e451c26c
authored
Dec 27, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabac: drop unused STRICT_LIMITS code branch
parent
9785082c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
19 deletions
+0
-19
cabac.c
libavcodec/cabac.c
+0
-16
cabac.h
libavcodec/cabac.h
+0
-3
No files found.
libavcodec/cabac.c
View file @
e451c26c
...
...
@@ -109,10 +109,6 @@ void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size){
c
->
low
=
0
;
c
->
range
=
0x1FE
;
c
->
outstanding_count
=
0
;
#ifdef STRICT_LIMITS
c
->
sym_count
=
0
;
#endif
c
->
pb
.
bit_left
++
;
//avoids firstBitFlag
}
...
...
@@ -179,10 +175,6 @@ static void put_cabac(CABACContext *c, uint8_t * const state, int bit){
}
renorm_cabac_encoder
(
c
);
#ifdef STRICT_LIMITS
c
->
symCount
++
;
#endif
}
/**
...
...
@@ -204,10 +196,6 @@ static void put_cabac_bypass(CABACContext *c, int bit){
put_cabac_bit
(
c
,
1
);
c
->
low
-=
0x400
;
}
#ifdef STRICT_LIMITS
c
->
symCount
++
;
#endif
}
/**
...
...
@@ -232,10 +220,6 @@ static int put_cabac_terminate(CABACContext *c, int bit){
flush_put_bits
(
&
c
->
pb
);
//FIXME FIXME FIXME XXX wrong
}
#ifdef STRICT_LIMITS
c
->
symCount
++
;
#endif
return
(
put_bits_count
(
&
c
->
pb
)
+
7
)
>>
3
;
}
...
...
libavcodec/cabac.h
View file @
e451c26c
...
...
@@ -41,9 +41,6 @@ typedef struct CABACContext{
int
low
;
int
range
;
int
outstanding_count
;
#ifdef STRICT_LIMITS
int
symCount
;
#endif
const
uint8_t
*
bytestream_start
;
const
uint8_t
*
bytestream
;
const
uint8_t
*
bytestream_end
;
...
...
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