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
29fb1b5a
Commit
29fb1b5a
authored
Jul 10, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws: Fix chroma init for 32bit buffers.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c59f9a68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
utils.c
libswscale/utils.c
+8
-2
No files found.
libswscale/utils.c
View file @
29fb1b5a
...
...
@@ -778,7 +778,7 @@ SwsContext *sws_alloc_context(void)
int
sws_init_context
(
SwsContext
*
c
,
SwsFilter
*
srcFilter
,
SwsFilter
*
dstFilter
)
{
int
i
;
int
i
,
j
;
int
usesVFilter
,
usesHFilter
;
int
unscaled
;
SwsFilter
dummyFilter
=
{
NULL
,
NULL
,
NULL
,
NULL
};
...
...
@@ -1062,7 +1062,13 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
//try to avoid drawing green stuff between the right end and the stride end
for
(
i
=
0
;
i
<
c
->
vChrBufSize
;
i
++
)
memset
(
c
->
chrUPixBuf
[
i
],
64
,
dst_stride
*
2
+
1
);
if
(
av_pix_fmt_descriptors
[
c
->
dstFormat
].
comp
[
0
].
depth_minus1
==
15
){
av_assert0
(
c
->
scalingBpp
==
16
);
for
(
j
=
0
;
j
<
dst_stride
/
2
+
1
;
j
++
)
((
int32_t
*
)(
c
->
chrUPixBuf
[
i
]))[
j
]
=
1
<<
18
;
}
else
for
(
j
=
0
;
j
<
dst_stride
+
1
;
j
++
)
((
int16_t
*
)(
c
->
chrUPixBuf
[
i
]))[
j
]
=
1
<<
14
;
assert
(
c
->
chrDstH
<=
dstH
);
...
...
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