mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_transpose_vt: fix declaration-after-statement
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
7cca9c07ca
commit
2387328fa2
|
@ -69,11 +69,12 @@ static int transpose_vt_filter_frame(AVFilterLink *link, AVFrame *in)
|
||||||
AVFilterLink *outlink = ctx->outputs[0];
|
AVFilterLink *outlink = ctx->outputs[0];
|
||||||
CVPixelBufferRef src;
|
CVPixelBufferRef src;
|
||||||
CVPixelBufferRef dst;
|
CVPixelBufferRef dst;
|
||||||
|
AVFrame *out;
|
||||||
|
|
||||||
if (s->passthrough)
|
if (s->passthrough)
|
||||||
return ff_filter_frame(outlink, in);
|
return ff_filter_frame(outlink, in);
|
||||||
|
|
||||||
AVFrame *out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
|
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
|
||||||
if (!out) {
|
if (!out) {
|
||||||
ret = AVERROR(ENOMEM);
|
ret = AVERROR(ENOMEM);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
Loading…
Reference in New Issue