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
2217a224
Commit
2217a224
authored
Oct 14, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpxenc: fix signed c99 overflows
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7a32ab5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dpxenc.c
libavcodec/dpxenc.c
+6
-6
No files found.
libavcodec/dpxenc.c
View file @
2217a224
...
...
@@ -105,13 +105,13 @@ static void encode_rgb48_10bit(AVCodecContext *avctx, const AVPicture *pic, uint
for
(
x
=
0
;
x
<
avctx
->
width
;
x
++
)
{
int
value
;
if
(
s
->
big_endian
)
{
value
=
((
AV_RB16
(
src
+
6
*
x
+
4
)
&
0xFFC0
)
>>
4
)
|
((
AV_RB16
(
src
+
6
*
x
+
2
)
&
0xFFC0
)
<<
6
)
|
((
AV_RB16
(
src
+
6
*
x
+
0
)
&
0xFFC0
)
<<
16
);
value
=
((
AV_RB16
(
src
+
6
*
x
+
4
)
&
0xFFC0
U
)
>>
4
)
|
((
AV_RB16
(
src
+
6
*
x
+
2
)
&
0xFFC0
U
)
<<
6
)
|
((
AV_RB16
(
src
+
6
*
x
+
0
)
&
0xFFC0
U
)
<<
16
);
}
else
{
value
=
((
AV_RL16
(
src
+
6
*
x
+
4
)
&
0xFFC0
)
>>
4
)
|
((
AV_RL16
(
src
+
6
*
x
+
2
)
&
0xFFC0
)
<<
6
)
|
((
AV_RL16
(
src
+
6
*
x
+
0
)
&
0xFFC0
)
<<
16
);
value
=
((
AV_RL16
(
src
+
6
*
x
+
4
)
&
0xFFC0
U
)
>>
4
)
|
((
AV_RL16
(
src
+
6
*
x
+
2
)
&
0xFFC0
U
)
<<
6
)
|
((
AV_RL16
(
src
+
6
*
x
+
0
)
&
0xFFC0
U
)
<<
16
);
}
write32
(
dst
,
value
);
dst
+=
4
;
...
...
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