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
a3494679
Commit
a3494679
authored
Jul 13, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_vlc -> get_vlc2
Originally committed as revision 753 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f5abd9fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
rv10.c
libavcodec/rv10.c
+6
-4
No files found.
libavcodec/rv10.c
View file @
a3494679
...
...
@@ -22,6 +22,8 @@
//#define DEBUG
#define DC_VLC_BITS 9
static
const
UINT16
rv_lum_code
[
256
]
=
{
0x3e7f
,
0x0f00
,
0x0f01
,
0x0f02
,
0x0f03
,
0x0f04
,
0x0f05
,
0x0f06
,
...
...
@@ -173,7 +175,7 @@ int rv_decode_dc(MpegEncContext *s, int n)
int
code
;
if
(
n
<
4
)
{
code
=
get_vlc
(
&
s
->
gb
,
&
rv_dc_lum
);
code
=
get_vlc
2
(
&
s
->
gb
,
rv_dc_lum
.
table
,
DC_VLC_BITS
,
2
);
if
(
code
<
0
)
{
/* XXX: I don't understand why they use LONGER codes than
necessary. The following code would be completely useless
...
...
@@ -196,7 +198,7 @@ int rv_decode_dc(MpegEncContext *s, int n)
code
-=
128
;
}
}
else
{
code
=
get_vlc
(
&
s
->
gb
,
&
rv_dc_chrom
);
code
=
get_vlc
2
(
&
s
->
gb
,
rv_dc_chrom
.
table
,
DC_VLC_BITS
,
2
);
/* same remark */
if
(
code
<
0
)
{
code
=
get_bits
(
&
s
->
gb
,
9
);
...
...
@@ -351,10 +353,10 @@ static int rv10_decode_init(AVCodecContext *avctx)
/* init rv vlc */
if
(
!
done
)
{
init_vlc
(
&
rv_dc_lum
,
9
,
256
,
init_vlc
(
&
rv_dc_lum
,
DC_VLC_BITS
,
256
,
rv_lum_bits
,
1
,
1
,
rv_lum_code
,
2
,
2
);
init_vlc
(
&
rv_dc_chrom
,
9
,
256
,
init_vlc
(
&
rv_dc_chrom
,
DC_VLC_BITS
,
256
,
rv_chrom_bits
,
1
,
1
,
rv_chrom_code
,
2
,
2
);
done
=
1
;
...
...
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