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
7594ee2e
Commit
7594ee2e
authored
Mar 18, 2012
by
Carl Eugen Hoyos
Committed by
Michael Niedermayer
Mar 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jpg: fix colors for sequential RGB
Fixes Ticket850 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0f6f5e6f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mjpegdec.c
libavcodec/mjpegdec.c
+2
-0
No files found.
libavcodec/mjpegdec.c
View file @
7594ee2e
...
...
@@ -1168,6 +1168,8 @@ int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask,
if
(
nb_components
==
3
&&
s
->
nb_components
==
3
&&
s
->
avctx
->
pix_fmt
==
PIX_FMT_GBR24P
)
index
=
(
i
+
2
)
%
3
;
if
(
nb_components
==
1
&&
s
->
nb_components
==
3
&&
s
->
avctx
->
pix_fmt
==
PIX_FMT_GBR24P
)
index
=
(
index
+
2
)
%
3
;
s
->
comp_index
[
i
]
=
index
;
...
...
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