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
5aab307f
Commit
5aab307f
authored
Jul 21, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_colormatrix: avoid using out_buf
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
313d1981
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
vf_colormatrix.c
libavfilter/vf_colormatrix.c
+5
-2
No files found.
libavfilter/vf_colormatrix.c
View file @
5aab307f
...
...
@@ -61,6 +61,7 @@ typedef struct {
char
src
[
256
];
char
dst
[
256
];
int
hsub
,
vsub
;
AVFilterBufferRef
*
outpicref
}
ColorMatrixContext
;
#define ma m[0][0]
...
...
@@ -341,9 +342,11 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *inlink, int perms, int
static
void
start_frame
(
AVFilterLink
*
link
,
AVFilterBufferRef
*
picref
)
{
AVFilterContext
*
ctx
=
link
->
dst
;
ColorMatrixContext
*
color
=
ctx
->
priv
;
AVFilterBufferRef
*
outpicref
=
avfilter_ref_buffer
(
picref
,
~
0
);
link
->
dst
->
outputs
[
0
]
->
out_bu
f
=
outpicref
;
color
->
outpicre
f
=
outpicref
;
ff_start_frame
(
link
->
dst
->
outputs
[
0
],
outpicref
);
}
...
...
@@ -352,7 +355,7 @@ static void end_frame(AVFilterLink *link)
{
AVFilterContext
*
ctx
=
link
->
dst
;
ColorMatrixContext
*
color
=
ctx
->
priv
;
AVFilterBufferRef
*
out
=
link
->
dst
->
outputs
[
0
]
->
out_bu
f
;
AVFilterBufferRef
*
out
=
color
->
outpicre
f
;
if
(
link
->
cur_buf
->
format
==
PIX_FMT_YUV422P
)
process_frame_yuv422p
(
color
,
out
,
link
->
cur_buf
);
...
...
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