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
f28ba31b
Commit
f28ba31b
authored
Aug 09, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/alphablend: Fix big endian formats on LE
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
b7faa9d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
alphablend.c
libswscale/alphablend.c
+1
-1
No files found.
libswscale/alphablend.c
View file @
f28ba31b
...
@@ -44,7 +44,7 @@ int ff_sws_alphablendaway(SwsContext *c, const uint8_t *src[],
...
@@ -44,7 +44,7 @@ int ff_sws_alphablendaway(SwsContext *c, const uint8_t *src[],
const
uint16_t
*
a
=
src
[
plane_count
]
+
srcStride
[
plane_count
]
*
y
;
const
uint16_t
*
a
=
src
[
plane_count
]
+
srcStride
[
plane_count
]
*
y
;
uint16_t
*
d
=
dst
[
plane
]
+
dstStride
[
plane
]
*
y
;
uint16_t
*
d
=
dst
[
plane
]
+
dstStride
[
plane
]
*
y
;
unsigned
target
=
plane
&&
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG_RGB
)
?
1
<<
desc
->
comp
[
0
].
depth_minus1
:
0
;
unsigned
target
=
plane
&&
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG_RGB
)
?
1
<<
desc
->
comp
[
0
].
depth_minus1
:
0
;
if
((
!
isBE
(
c
->
dst
Format
))
==
!
HAVE_BIGENDIAN
)
{
if
((
!
isBE
(
c
->
src
Format
))
==
!
HAVE_BIGENDIAN
)
{
for
(
x
=
0
;
x
<
w
;
x
++
)
{
for
(
x
=
0
;
x
<
w
;
x
++
)
{
unsigned
u
=
s
[
x
]
*
a
[
x
]
+
target
*
(
max
-
a
[
x
])
+
off
;
unsigned
u
=
s
[
x
]
*
a
[
x
]
+
target
*
(
max
-
a
[
x
])
+
off
;
d
[
x
]
=
av_clip
((
u
+
(
u
>>
shift
))
>>
shift
,
0
,
max
);
d
[
x
]
=
av_clip
((
u
+
(
u
>>
shift
))
>>
shift
,
0
,
max
);
...
...
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