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
7db0f9be
Commit
7db0f9be
authored
May 06, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpeg4videoenc: fix alternative implementation of mpeg4_encode_dc()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
141a8468
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mpeg4videoenc.c
libavcodec/mpeg4videoenc.c
+4
-4
No files found.
libavcodec/mpeg4videoenc.c
View file @
7db0f9be
...
...
@@ -278,19 +278,19 @@ static inline void mpeg4_encode_dc(PutBitContext *s, int level, int n)
if
(
n
<
4
)
{
/* luminance */
put_bits
(
&
s
->
pb
,
ff_mpeg4_DCtab_lum
[
size
][
1
],
ff_mpeg4_DCtab_lum
[
size
][
0
]);
put_bits
(
s
,
ff_mpeg4_DCtab_lum
[
size
][
1
],
ff_mpeg4_DCtab_lum
[
size
][
0
]);
}
else
{
/* chrominance */
put_bits
(
&
s
->
pb
,
ff_mpeg4_DCtab_chrom
[
size
][
1
],
ff_mpeg4_DCtab_chrom
[
size
][
0
]);
put_bits
(
s
,
ff_mpeg4_DCtab_chrom
[
size
][
1
],
ff_mpeg4_DCtab_chrom
[
size
][
0
]);
}
/* encode remaining bits */
if
(
size
>
0
)
{
if
(
level
<
0
)
level
=
(
-
level
)
^
((
1
<<
size
)
-
1
);
put_bits
(
&
s
->
pb
,
size
,
level
);
put_bits
(
s
,
size
,
level
);
if
(
size
>
8
)
put_bits
(
&
s
->
pb
,
1
,
1
);
put_bits
(
s
,
1
,
1
);
}
#endif
}
...
...
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