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
c39e3c6f
Commit
c39e3c6f
authored
Jul 24, 2006
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes for decode_p_mb()
Originally committed as revision 5819 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
88b6f0fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vc1.c
libavcodec/vc1.c
+3
-2
No files found.
libavcodec/vc1.c
View file @
c39e3c6f
...
...
@@ -2540,7 +2540,7 @@ static int vc1_decode_p_mb(VC1Context *v)
if
(
!
coded_inter
)
coded_inter
=
!
is_intra
[
i
]
&
is_coded
[
i
];
}
// if there are no coded blocks then don't do anything more
if
(
!
intra_count
&&
!
coded_inter
)
return
;
if
(
!
intra_count
&&
!
coded_inter
)
return
0
;
dst_idx
=
0
;
GET_MQUANT
();
s
->
current_picture
.
qscale_table
[
mb_pos
]
=
mquant
;
...
...
@@ -2559,7 +2559,7 @@ static int vc1_decode_p_mb(VC1Context *v)
else
s
->
ac_pred
=
0
;
}
if
(
!
v
->
ttmbf
&&
coded_inter
)
ttmb
=
get_vlc2
(
gb
,
vc1_ttmb_vlc
[
v
->
tt_index
].
table
,
VC1_TTMB_VLC_BITS
,
1
2
);
ttmb
=
get_vlc2
(
gb
,
vc1_ttmb_vlc
[
v
->
tt_index
].
table
,
VC1_TTMB_VLC_BITS
,
2
);
for
(
i
=
0
;
i
<
6
;
i
++
)
{
dst_idx
+=
i
>>
2
;
...
...
@@ -2596,6 +2596,7 @@ static int vc1_decode_p_mb(VC1Context *v)
else
//Skipped MB
{
s
->
mb_intra
=
0
;
s
->
current_picture
.
qscale_table
[
mb_pos
]
=
0
;
for
(
i
=
0
;
i
<
6
;
i
++
)
{
v
->
mb_type
[
0
][
s
->
block_index
[
i
]]
=
0
;
s
->
dc_val
[
0
][
s
->
block_index
[
i
]]
=
0
;
...
...
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