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
e652cc96
Commit
e652cc96
authored
Jan 09, 2012
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rv34: use get_bits_left()
It is not necessary to store the bit stream length in a RV34DecContext field.
parent
ac646076
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
rv34.c
libavcodec/rv34.c
+1
-2
rv34.h
libavcodec/rv34.h
+0
-1
No files found.
libavcodec/rv34.c
View file @
e652cc96
...
...
@@ -1186,7 +1186,7 @@ static int check_slice_end(RV34DecContext *r, MpegEncContext *s)
return
1
;
if
(
r
->
s
.
mb_skip_run
>
1
)
return
0
;
bits
=
r
->
bits
-
get_bits_coun
t
(
&
s
->
gb
);
bits
=
get_bits_lef
t
(
&
s
->
gb
);
if
(
bits
<
0
||
(
bits
<
8
&&
!
show_bits
(
&
s
->
gb
,
bits
)))
return
1
;
return
0
;
...
...
@@ -1266,7 +1266,6 @@ static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int
r
->
si
.
end
=
end
;
s
->
qscale
=
r
->
si
.
quant
;
r
->
bits
=
buf_size
*
8
;
s
->
mb_num_left
=
r
->
si
.
end
-
r
->
si
.
start
;
r
->
s
.
mb_skip_run
=
0
;
...
...
libavcodec/rv34.h
View file @
e652cc96
...
...
@@ -92,7 +92,6 @@ typedef struct RV34DecContext{
const
uint8_t
*
luma_dc_quant_p
;
///< luma subblock DC quantizer for interframes
RV34VLC
*
cur_vlcs
;
///< VLC set used for current frame decoding
int
bits
;
///< slice size in bits
H264PredContext
h
;
///< functions for 4x4 and 16x16 intra block prediction
SliceInfo
si
;
///< current slice information
...
...
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