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
ae4b7d59
Commit
ae4b7d59
authored
Apr 26, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
H.263 MCBPC fix
Originally committed as revision 3077 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
db7a2e0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
h263.c
libavcodec/h263.c
+11
-9
No files found.
libavcodec/h263.c
View file @
ae4b7d59
...
...
@@ -496,6 +496,17 @@ void ff_clean_h263_qscales(MpegEncContext *s){
if
(
qscale_table
[
s
->
mb_index2xy
[
i
]
]
-
qscale_table
[
s
->
mb_index2xy
[
i
+
1
]
]
>
2
)
qscale_table
[
s
->
mb_index2xy
[
i
]
]
=
qscale_table
[
s
->
mb_index2xy
[
i
+
1
]
]
+
2
;
}
if
(
s
->
codec_id
!=
CODEC_ID_H263P
){
for
(
i
=
1
;
i
<
s
->
mb_num
;
i
++
){
int
mb_xy
=
s
->
mb_index2xy
[
i
];
if
(
qscale_table
[
mb_xy
]
!=
qscale_table
[
s
->
mb_index2xy
[
i
-
1
]]
&&
(
s
->
mb_type
[
mb_xy
]
&
CANDIDATE_MB_TYPE_INTER4V
)){
s
->
mb_type
[
mb_xy
]
&=
~
CANDIDATE_MB_TYPE_INTER4V
;
s
->
mb_type
[
mb_xy
]
|=
CANDIDATE_MB_TYPE_INTER
;
}
}
}
}
/**
...
...
@@ -507,15 +518,6 @@ void ff_clean_mpeg4_qscales(MpegEncContext *s){
ff_clean_h263_qscales
(
s
);
for
(
i
=
1
;
i
<
s
->
mb_num
;
i
++
){
int
mb_xy
=
s
->
mb_index2xy
[
i
];
if
(
qscale_table
[
mb_xy
]
!=
qscale_table
[
s
->
mb_index2xy
[
i
-
1
]]
&&
(
s
->
mb_type
[
mb_xy
]
&
CANDIDATE_MB_TYPE_INTER4V
)){
s
->
mb_type
[
mb_xy
]
&=
~
CANDIDATE_MB_TYPE_INTER4V
;
s
->
mb_type
[
mb_xy
]
|=
CANDIDATE_MB_TYPE_INTER
;
}
}
if
(
s
->
pict_type
==
B_TYPE
){
int
odd
=
0
;
/* ok, come on, this isnt funny anymore, theres more code for handling this mpeg4 mess than
...
...
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