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
8aedc51d
Commit
8aedc51d
authored
Apr 27, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 3085 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3834be58
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
24 deletions
+1
-24
mpeg12.c
libavcodec/mpeg12.c
+1
-1
mpeg12data.h
libavcodec/mpeg12data.h
+0
-23
No files found.
libavcodec/mpeg12.c
View file @
8aedc51d
...
...
@@ -777,7 +777,7 @@ void ff_mpeg1_encode_init(MpegEncContext *s)
adiff
=
ABS
(
diff
);
if
(
diff
<
0
)
diff
--
;
index
=
vlc_dc_table
[
adiff
]
;
index
=
av_log2
(
2
*
adiff
)
;
bits
=
vlc_dc_lum_bits
[
index
]
+
index
;
code
=
(
vlc_dc_lum_code
[
index
]
<<
index
)
+
(
diff
&
((
1
<<
index
)
-
1
));
...
...
libavcodec/mpeg12data.h
View file @
8aedc51d
...
...
@@ -25,29 +25,6 @@ const int16_t ff_mpeg1_default_non_intra_matrix[64] = {
16
,
16
,
16
,
16
,
16
,
16
,
16
,
16
,
};
static
const
unsigned
char
vlc_dc_table
[
256
]
=
{
0
,
1
,
2
,
2
,
3
,
3
,
3
,
3
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
5
,
5
,
5
,
5
,
5
,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
0x7e
,
0xfe
,
0x1fe
,
0x1ff
,
};
...
...
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