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
8865ae95
Commit
8865ae95
authored
Mar 28, 2019
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/swscale_unscaled: Fix chroma slice height
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
4daec0c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
swscale_unscaled.c
libswscale/swscale_unscaled.c
+4
-4
No files found.
libswscale/swscale_unscaled.c
View file @
8865ae95
...
...
@@ -150,10 +150,10 @@ static int planarToNv12Wrapper(SwsContext *c, const uint8_t *src[],
dstParam
[
0
],
dstStride
[
0
]);
if
(
c
->
dstFormat
==
AV_PIX_FMT_NV12
)
interleaveBytes
(
src
[
1
],
src
[
2
],
dst
,
c
->
chrSrcW
,
c
->
chrSrcH
,
interleaveBytes
(
src
[
1
],
src
[
2
],
dst
,
c
->
chrSrcW
,
(
srcSliceH
+
1
)
/
2
,
srcStride
[
1
],
srcStride
[
2
],
dstStride
[
1
]);
else
interleaveBytes
(
src
[
2
],
src
[
1
],
dst
,
c
->
chrSrcW
,
c
->
chrSrcH
,
interleaveBytes
(
src
[
2
],
src
[
1
],
dst
,
c
->
chrSrcW
,
(
srcSliceH
+
1
)
/
2
,
srcStride
[
2
],
srcStride
[
1
],
dstStride
[
1
]);
return
srcSliceH
;
...
...
@@ -171,10 +171,10 @@ static int nv12ToPlanarWrapper(SwsContext *c, const uint8_t *src[],
dstParam
[
0
],
dstStride
[
0
]);
if
(
c
->
srcFormat
==
AV_PIX_FMT_NV12
)
deinterleaveBytes
(
src
[
1
],
dst1
,
dst2
,
c
->
chrSrcW
,
c
->
chrSrcH
,
deinterleaveBytes
(
src
[
1
],
dst1
,
dst2
,
c
->
chrSrcW
,
(
srcSliceH
+
1
)
/
2
,
srcStride
[
1
],
dstStride
[
1
],
dstStride
[
2
]);
else
deinterleaveBytes
(
src
[
1
],
dst2
,
dst1
,
c
->
chrSrcW
,
c
->
chrSrcH
,
deinterleaveBytes
(
src
[
1
],
dst2
,
dst1
,
c
->
chrSrcW
,
(
srcSliceH
+
1
)
/
2
,
srcStride
[
1
],
dstStride
[
2
],
dstStride
[
1
]);
return
srcSliceH
;
...
...
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