Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
ac921338
Commit
ac921338
authored
Jul 01, 2013
by
Michael Niedermayer
Committed by
Luca Barbato
Jul 02, 2013
Browse files
jpeg2000: Correctly calculate sgnd
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
fd54dd02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libavcodec/jpeg2000dec.c
libavcodec/jpeg2000dec.c
+1
-1
No files found.
libavcodec/jpeg2000dec.c
View file @
ac921338
...
...
@@ -198,7 +198,7 @@ static int get_siz(Jpeg2000DecoderContext *s)
uint8_t
x
=
bytestream2_get_byteu(&s->g)
;
s->cbps[i]
=
(x
&
0x7f)
+
1
;
s->precision
=
FFMAX(s->cbps[i],
s->precision)
;
s->sgnd[i]
=
(x
&
0x80)
==
1
;
s->sgnd[i]
=
!!
(x
&
0x80)
;
s->cdx[i]
=
bytestream2_get_byteu(&s->g)
;
s->cdy[i]
=
bytestream2_get_byteu(&s->g)
;
...
...
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