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
8a36717a
Commit
8a36717a
authored
Feb 09, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rv10/obmc fixes
Originally committed as revision 2768 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
99683a30
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
9 deletions
+30
-9
h263.c
libavcodec/h263.c
+21
-7
rv10.c
libavcodec/rv10.c
+9
-2
No files found.
libavcodec/h263.c
View file @
8a36717a
...
...
@@ -3866,8 +3866,15 @@ int ff_h263_decode_mb(MpegEncContext *s,
}
}
/* decode each block */
for
(
i
=
0
;
i
<
6
;
i
++
)
{
if
(
h263_decode_block
(
s
,
block
[
i
],
i
,
cbp
&
32
)
<
0
)
return
-
1
;
cbp
+=
cbp
;
}
if
(
s
->
obmc
){
if
(
s
->
pict_type
==
P_TYPE
&&
s
->
mb_x
+
1
<
s
->
mb_width
)
if
(
s
->
pict_type
==
P_TYPE
&&
s
->
mb_x
+
1
<
s
->
mb_width
&&
s
->
mb_num_left
!=
1
)
preview_obmc
(
s
);
}
}
else
if
(
s
->
pict_type
==
B_TYPE
)
{
...
...
@@ -3957,6 +3964,13 @@ int ff_h263_decode_mb(MpegEncContext *s,
}
s
->
current_picture
.
mb_type
[
xy
]
=
mb_type
;
/* decode each block */
for
(
i
=
0
;
i
<
6
;
i
++
)
{
if
(
h263_decode_block
(
s
,
block
[
i
],
i
,
cbp
&
32
)
<
0
)
return
-
1
;
cbp
+=
cbp
;
}
}
else
{
/* I-Frame */
do
{
cbpc
=
get_vlc2
(
&
s
->
gb
,
intra_MCBPC_vlc
.
table
,
INTRA_MCBPC_VLC_BITS
,
2
);
...
...
@@ -3989,7 +4003,6 @@ intra:
if
(
dquant
)
{
h263_decode_dquant
(
s
);
}
}
/* decode each block */
for
(
i
=
0
;
i
<
6
;
i
++
)
{
...
...
@@ -3997,6 +4010,7 @@ intra:
return
-
1
;
cbp
+=
cbp
;
}
}
end
:
/* per-MB end of slice check */
...
...
libavcodec/rv10.c
View file @
8a36717a
...
...
@@ -449,6 +449,12 @@ static int rv10_decode_init(AVCodecContext *avctx)
s
->
h263_long_vectors
=
0
;
s
->
low_delay
=
1
;
break
;
case
0x10002000
:
s
->
rv10_version
=
3
;
s
->
h263_long_vectors
=
1
;
s
->
low_delay
=
1
;
s
->
obmc
=
1
;
break
;
case
0x10003000
:
s
->
rv10_version
=
3
;
s
->
h263_long_vectors
=
1
;
...
...
@@ -586,7 +592,8 @@ static int rv10_decode_packet(AVCodecContext *avctx,
s
->
block_wrap
[
5
]
=
s
->
mb_width
+
2
;
ff_init_block_index
(
s
);
/* decode each macroblock */
for
(
i
=
0
;
i
<
mb_count
;
i
++
)
{
for
(
s
->
mb_num_left
=
mb_count
;
s
->
mb_num_left
>
0
;
s
->
mb_num_left
--
)
{
int
ret
;
ff_update_block_index
(
s
);
#ifdef DEBUG
...
...
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