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
0f31d401
Commit
0f31d401
authored
Feb 25, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/mjpegdec: Fix decoding images with Adobe_CM tag.
Fixes ticket #5267.
parent
03af008e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mjpegdec.c
libavcodec/mjpegdec.c
+5
-1
No files found.
libavcodec/mjpegdec.c
View file @
0f31d401
...
...
@@ -1677,7 +1677,11 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
goto
out
;
}
if
(
id
==
AV_RB32
(
"Adob"
)
&&
(
get_bits
(
&
s
->
gb
,
8
)
==
'e'
))
{
if
(
id
==
AV_RB32
(
"Adob"
)
&&
len
>=
7
&&
show_bits
(
&
s
->
gb
,
8
)
==
'e'
&&
show_bits_long
(
&
s
->
gb
,
32
)
!=
AV_RB32
(
"e_CM"
))
{
skip_bits
(
&
s
->
gb
,
8
);
/* 'e' */
skip_bits
(
&
s
->
gb
,
16
);
/* version */
skip_bits
(
&
s
->
gb
,
16
);
/* flags0 */
skip_bits
(
&
s
->
gb
,
16
);
/* flags1 */
...
...
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