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
8f9a3817
Commit
8f9a3817
authored
Apr 21, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_qp: fix cleanup on error
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a924b83c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vf_qp.c
libavfilter/vf_qp.c
+4
-2
No files found.
libavfilter/vf_qp.c
View file @
8f9a3817
...
...
@@ -90,7 +90,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
QPContext
*
s
=
ctx
->
priv
;
AVBufferRef
*
out_qp_table_buf
;
AVFrame
*
out
;
AVFrame
*
out
=
NULL
;
const
int8_t
*
in_qp_table
;
int
type
,
stride
,
ret
;
...
...
@@ -129,7 +129,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
var_names
,
var_values
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
0
,
ctx
);
if
(
ret
<
0
)
return
ret
;
goto
fail
;
out_qp_table_buf
->
data
[
x
+
s
->
qstride
*
y
]
=
lrintf
(
temp_val
);
}
}
else
if
(
in_qp_table
)
{
...
...
@@ -148,8 +148,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
ret
=
ff_filter_frame
(
outlink
,
out
);
out
=
NULL
;
fail:
av_frame_free
(
&
in
);
av_frame_free
(
&
out
);
return
ret
;
}
...
...
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