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
d8c2efac
Commit
d8c2efac
authored
Feb 07, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
width or height %16 != 0 bugfix
Originally committed as revision 287 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a861d4d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
mjpeg.c
libavcodec/mjpeg.c
+5
-7
No files found.
libavcodec/mjpeg.c
View file @
d8c2efac
...
...
@@ -620,13 +620,11 @@ static int mjpeg_decode_sof0(MJpegDecodeContext *s,
}
for
(
i
=
0
;
i
<
nb_components
;
i
++
)
{
int
w
,
h
,
hh
,
vv
;
hh
=
s
->
h_max
/
s
->
h_count
[
i
];
vv
=
s
->
v_max
/
s
->
v_count
[
i
];
w
=
(
s
->
width
+
8
*
hh
-
1
)
/
(
8
*
hh
);
h
=
(
s
->
height
+
8
*
vv
-
1
)
/
(
8
*
vv
);
w
=
w
*
8
;
h
=
h
*
8
;
int
w
,
h
;
w
=
(
s
->
width
+
8
*
s
->
h_max
-
1
)
/
(
8
*
s
->
h_max
);
h
=
(
s
->
height
+
8
*
s
->
v_max
-
1
)
/
(
8
*
s
->
v_max
);
w
=
w
*
8
*
s
->
h_count
[
i
];
h
=
h
*
8
*
s
->
v_count
[
i
];
if
(
s
->
interlaced
)
w
*=
2
;
s
->
linesize
[
i
]
=
w
;
...
...
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