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
e82b181f
Commit
e82b181f
authored
Sep 03, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/mjpegdec: Only read JFIF thumbnail size if the segment is long enough.
Fixes ticket #5805.
parent
b4d7c1f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
mjpegdec.c
libavcodec/mjpegdec.c
+4
-1
version.h
libavcodec/version.h
+1
-1
No files found.
libavcodec/mjpegdec.c
View file @
e82b181f
...
...
@@ -1690,6 +1690,8 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
s
->
avctx
->
sample_aspect_ratio
.
num
,
s
->
avctx
->
sample_aspect_ratio
.
den
);
len
-=
8
;
if
(
len
>=
2
)
{
t_w
=
get_bits
(
&
s
->
gb
,
8
);
t_h
=
get_bits
(
&
s
->
gb
,
8
);
if
(
t_w
&&
t_h
)
{
...
...
@@ -1697,7 +1699,8 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
if
(
len
-
10
-
(
t_w
*
t_h
*
3
)
>
0
)
len
-=
t_w
*
t_h
*
3
;
}
len
-=
10
;
len
-=
2
;
}
goto
out
;
}
...
...
libavcodec/version.h
View file @
e82b181f
...
...
@@ -29,7 +29,7 @@
#define LIBAVCODEC_VERSION_MAJOR 57
#define LIBAVCODEC_VERSION_MINOR 54
#define LIBAVCODEC_VERSION_MICRO 10
1
#define LIBAVCODEC_VERSION_MICRO 10
2
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
...
...
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