|
|
@ -95,15 +95,10 @@ static int query_formats(AVFilterContext *ctx) |
|
|
|
static const enum AVPixelFormat in_fmts[] = {AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE}; |
|
|
|
static const enum AVPixelFormat in_fmts[] = {AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE}; |
|
|
|
static const enum AVPixelFormat out_fmts[] = {AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE}; |
|
|
|
static const enum AVPixelFormat out_fmts[] = {AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE}; |
|
|
|
int ret; |
|
|
|
int ret; |
|
|
|
AVFilterFormats *in = ff_make_format_list(in_fmts); |
|
|
|
|
|
|
|
AVFilterFormats *out = ff_make_format_list(out_fmts); |
|
|
|
if ((ret = ff_formats_ref(ff_make_format_list(in_fmts) , &ctx->inputs[0]->out_formats)) < 0) |
|
|
|
if (!in || !out) { |
|
|
|
return ret; |
|
|
|
av_freep(&in); |
|
|
|
if ((ret = ff_formats_ref(ff_make_format_list(out_fmts), &ctx->outputs[0]->in_formats)) < 0) |
|
|
|
av_freep(&out); |
|
|
|
|
|
|
|
return AVERROR(ENOMEM); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if ((ret = ff_formats_ref(in , &ctx->inputs[0]->out_formats)) < 0 || |
|
|
|
|
|
|
|
(ret = ff_formats_ref(out, &ctx->outputs[0]->in_formats)) < 0) |
|
|
|
|
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|