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
ab00685a
Commit
ab00685a
authored
Jun 01, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
Originally committed as revision 636 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1eb2212e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
rv10.c
libavcodec/rv10.c
+25
-1
No files found.
libavcodec/rv10.c
View file @
ab00685a
...
...
@@ -430,9 +430,27 @@ static int rv10_decode_frame(AVCodecContext *avctx,
s
->
rv10_first_dc_coded
[
0
]
=
0
;
s
->
rv10_first_dc_coded
[
1
]
=
0
;
s
->
rv10_first_dc_coded
[
2
]
=
0
;
s
->
block_wrap
[
0
]
=
s
->
block_wrap
[
1
]
=
s
->
block_wrap
[
2
]
=
s
->
block_wrap
[
3
]
=
s
->
mb_width
*
2
+
2
;
s
->
block_wrap
[
4
]
=
s
->
block_wrap
[
5
]
=
s
->
mb_width
+
2
;
s
->
block_index
[
0
]
=
s
->
block_wrap
[
0
]
*
(
s
->
mb_y
*
2
+
1
)
-
1
+
s
->
mb_x
*
2
;
s
->
block_index
[
1
]
=
s
->
block_wrap
[
0
]
*
(
s
->
mb_y
*
2
+
1
)
+
s
->
mb_x
*
2
;
s
->
block_index
[
2
]
=
s
->
block_wrap
[
0
]
*
(
s
->
mb_y
*
2
+
2
)
-
1
+
s
->
mb_x
*
2
;
s
->
block_index
[
3
]
=
s
->
block_wrap
[
0
]
*
(
s
->
mb_y
*
2
+
2
)
+
s
->
mb_x
*
2
;
s
->
block_index
[
4
]
=
s
->
block_wrap
[
4
]
*
(
s
->
mb_y
+
1
)
+
s
->
block_wrap
[
0
]
*
(
s
->
mb_height
*
2
+
2
)
+
s
->
mb_x
;
s
->
block_index
[
5
]
=
s
->
block_wrap
[
4
]
*
(
s
->
mb_y
+
1
+
s
->
mb_height
+
2
)
+
s
->
block_wrap
[
0
]
*
(
s
->
mb_height
*
2
+
2
)
+
s
->
mb_x
;
/* decode each macroblock */
for
(
i
=
0
;
i
<
mb_count
;
i
++
)
{
s
->
block_index
[
0
]
+=
2
;
s
->
block_index
[
1
]
+=
2
;
s
->
block_index
[
2
]
+=
2
;
s
->
block_index
[
3
]
+=
2
;
s
->
block_index
[
4
]
++
;
s
->
block_index
[
5
]
++
;
#ifdef DEBUG
printf
(
"**mb x=%d y=%d
\n
"
,
s
->
mb_x
,
s
->
mb_y
);
#endif
...
...
@@ -450,6 +468,12 @@ static int rv10_decode_frame(AVCodecContext *avctx,
if
(
++
s
->
mb_x
==
s
->
mb_width
)
{
s
->
mb_x
=
0
;
s
->
mb_y
++
;
s
->
block_index
[
0
]
=
s
->
block_wrap
[
0
]
*
(
s
->
mb_y
*
2
+
1
)
-
1
;
s
->
block_index
[
1
]
=
s
->
block_wrap
[
0
]
*
(
s
->
mb_y
*
2
+
1
);
s
->
block_index
[
2
]
=
s
->
block_wrap
[
0
]
*
(
s
->
mb_y
*
2
+
2
)
-
1
;
s
->
block_index
[
3
]
=
s
->
block_wrap
[
0
]
*
(
s
->
mb_y
*
2
+
2
);
s
->
block_index
[
4
]
=
s
->
block_wrap
[
4
]
*
(
s
->
mb_y
+
1
)
+
s
->
block_wrap
[
0
]
*
(
s
->
mb_height
*
2
+
2
);
s
->
block_index
[
5
]
=
s
->
block_wrap
[
4
]
*
(
s
->
mb_y
+
1
+
s
->
mb_height
+
2
)
+
s
->
block_wrap
[
0
]
*
(
s
->
mb_height
*
2
+
2
);
}
}
...
...
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