OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52773a2
)
avfilter/vf_hwupload_cuda: fix potential leak
author
Timo Rothenpieler
<timo@rothenpieler.org>
Tue, 29 Nov 2016 16:40:18 +0000
(17:40 +0100)
committer
Timo Rothenpieler
<timo@rothenpieler.org>
Wed, 30 Nov 2016 11:36:23 +0000
(12:36 +0100)
libavfilter/vf_hwupload_cuda.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_hwupload_cuda.c
b/libavfilter/vf_hwupload_cuda.c
index
14688df
..
b9c2db6
100644
(file)
--- a/
libavfilter/vf_hwupload_cuda.c
+++ b/
libavfilter/vf_hwupload_cuda.c
@@
-64,12
+64,14
@@
static int cudaupload_query_formats(AVFilterContext *ctx)
AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,
};
AVFilterFormats *in_fmts = ff_make_format_list(input_pix_fmts);
- AVFilterFormats *out_fmts
= ff_make_format_list(output_pix_fmts)
;
+ AVFilterFormats *out_fmts;
ret = ff_formats_ref(in_fmts, &ctx->inputs[0]->out_formats);
if (ret < 0)
return ret;
+ out_fmts = ff_make_format_list(output_pix_fmts);
+
ret = ff_formats_ref(out_fmts, &ctx->outputs[0]->in_formats);
if (ret < 0)
return ret;