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
1a65d2a3
Commit
1a65d2a3
authored
Oct 29, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/mergeplanes: Fix >8 bit for big endian formats and yuv4xxp16le.
Fixes part of ticket #5916.
parent
f73a3aac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vf_mergeplanes.c
libavfilter/vf_mergeplanes.c
+4
-4
No files found.
libavfilter/vf_mergeplanes.c
View file @
1a65d2a3
...
...
@@ -192,9 +192,9 @@ static int config_output(AVFilterLink *outlink)
outlink
->
sample_aspect_ratio
=
ctx
->
inputs
[
0
]
->
sample_aspect_ratio
;
s
->
planewidth
[
1
]
=
s
->
planewidth
[
2
]
=
AV_CEIL_RSHIFT
(
outlink
->
w
,
s
->
outdesc
->
log2_chroma_w
);
s
->
planewidth
[
2
]
=
AV_CEIL_RSHIFT
(
((
s
->
outdesc
->
comp
[
1
].
depth
>
8
)
+
1
)
*
outlink
->
w
,
s
->
outdesc
->
log2_chroma_w
);
s
->
planewidth
[
0
]
=
s
->
planewidth
[
3
]
=
outlink
->
w
;
s
->
planewidth
[
3
]
=
((
s
->
outdesc
->
comp
[
0
].
depth
>
8
)
+
1
)
*
outlink
->
w
;
s
->
planeheight
[
1
]
=
s
->
planeheight
[
2
]
=
AV_CEIL_RSHIFT
(
outlink
->
h
,
s
->
outdesc
->
log2_chroma_h
);
s
->
planeheight
[
0
]
=
...
...
@@ -220,9 +220,9 @@ static int config_output(AVFilterLink *outlink)
}
inputp
->
planewidth
[
1
]
=
inputp
->
planewidth
[
2
]
=
AV_CEIL_RSHIFT
(
inlink
->
w
,
indesc
->
log2_chroma_w
);
inputp
->
planewidth
[
2
]
=
AV_CEIL_RSHIFT
(
((
indesc
->
comp
[
1
].
depth
>
8
)
+
1
)
*
inlink
->
w
,
indesc
->
log2_chroma_w
);
inputp
->
planewidth
[
0
]
=
inputp
->
planewidth
[
3
]
=
inlink
->
w
;
inputp
->
planewidth
[
3
]
=
((
indesc
->
comp
[
0
].
depth
>
8
)
+
1
)
*
inlink
->
w
;
inputp
->
planeheight
[
1
]
=
inputp
->
planeheight
[
2
]
=
AV_CEIL_RSHIFT
(
inlink
->
h
,
indesc
->
log2_chroma_h
);
inputp
->
planeheight
[
0
]
=
...
...
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