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
9f73b88c
Commit
9f73b88c
authored
Jan 31, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/h261enc: fix dquant encoding
Fixes Ticket4111 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f5722ba2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
h261enc.c
libavcodec/h261enc.c
+6
-3
No files found.
libavcodec/h261enc.c
View file @
9f73b88c
...
...
@@ -250,12 +250,13 @@ void ff_h261_encode_mb(MpegEncContext *s, int16_t block[6][64],
/* mvd indicates if this block is motion compensated */
mvd
=
motion_x
|
motion_y
;
if
((
cbp
|
mvd
|
s
->
dquant
)
==
0
)
{
if
((
cbp
|
mvd
)
==
0
)
{
/* skip macroblock */
s
->
skip_count
++
;
s
->
mb_skip_run
++
;
s
->
last_mv
[
0
][
0
][
0
]
=
0
;
s
->
last_mv
[
0
][
0
][
1
]
=
0
;
s
->
qscale
-=
s
->
dquant
;
return
;
}
}
...
...
@@ -274,13 +275,15 @@ void ff_h261_encode_mb(MpegEncContext *s, int16_t block[6][64],
h
->
mtype
+=
3
;
if
(
s
->
loop_filter
)
h
->
mtype
+=
3
;
if
(
cbp
||
s
->
dquant
)
if
(
cbp
)
h
->
mtype
++
;
av_assert1
(
h
->
mtype
>
1
);
}
if
(
s
->
dquant
)
if
(
s
->
dquant
&&
cbp
)
{
h
->
mtype
++
;
}
else
s
->
qscale
-=
s
->
dquant
;
put_bits
(
&
s
->
pb
,
ff_h261_mtype_bits
[
h
->
mtype
],
...
...
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