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
67116af9
Commit
67116af9
authored
Mar 22, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10l
Originally committed as revision 1699 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
64338956
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mpegvideo.c
libavcodec/mpegvideo.c
+4
-4
No files found.
libavcodec/mpegvideo.c
View file @
67116af9
...
...
@@ -3005,7 +3005,7 @@ static void encode_picture(MpegEncContext *s, int picture_number)
/* note: quant matrix value (8) is implied here */
s
->
last_dc
[
i
]
=
128
;
s
->
current_picture
.
error
[
i
]
=
0
;
s
->
current_picture
_ptr
->
error
[
i
]
=
0
;
}
s
->
mb_incr
=
1
;
s
->
last_mv
[
0
][
0
][
0
]
=
0
;
...
...
@@ -3377,17 +3377,17 @@ static void encode_picture(MpegEncContext *s, int picture_number)
if
(
s
->
mb_x
*
16
+
16
>
s
->
width
)
w
=
s
->
width
-
s
->
mb_x
*
16
;
if
(
s
->
mb_y
*
16
+
16
>
s
->
height
)
h
=
s
->
height
-
s
->
mb_y
*
16
;
s
->
current_picture
.
error
[
0
]
+=
sse
(
s
->
current_picture
_ptr
->
error
[
0
]
+=
sse
(
s
,
s
->
new_picture
.
data
[
0
]
+
s
->
mb_x
*
16
+
s
->
mb_y
*
s
->
linesize
*
16
,
s
->
current_picture
.
data
[
0
]
+
s
->
mb_x
*
16
+
s
->
mb_y
*
s
->
linesize
*
16
,
w
,
h
,
s
->
linesize
);
s
->
current_picture
.
error
[
1
]
+=
sse
(
s
->
current_picture
_ptr
->
error
[
1
]
+=
sse
(
s
,
s
->
new_picture
.
data
[
1
]
+
s
->
mb_x
*
8
+
s
->
mb_y
*
s
->
uvlinesize
*
8
,
s
->
current_picture
.
data
[
1
]
+
s
->
mb_x
*
8
+
s
->
mb_y
*
s
->
uvlinesize
*
8
,
w
>>
1
,
h
>>
1
,
s
->
uvlinesize
);
s
->
current_picture
.
error
[
2
]
+=
sse
(
s
->
current_picture
_ptr
->
error
[
2
]
+=
sse
(
s
,
s
->
new_picture
.
data
[
2
]
+
s
->
mb_x
*
8
+
s
->
mb_y
*
s
->
uvlinesize
*
8
,
s
->
current_picture
.
data
[
2
]
+
s
->
mb_x
*
8
+
s
->
mb_y
*
s
->
uvlinesize
*
8
,
...
...
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