Commit bd6240e7 authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/sendcmd: move buf init() variable to internal scope where it is used

parent c7065f1f
...@@ -374,7 +374,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args) ...@@ -374,7 +374,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
{ {
SendCmdContext *sendcmd = ctx->priv; SendCmdContext *sendcmd = ctx->priv;
int ret, i, j; int ret, i, j;
char *buf;
sendcmd->class = &sendcmd_class; sendcmd->class = &sendcmd_class;
av_opt_set_defaults(sendcmd); av_opt_set_defaults(sendcmd);
...@@ -389,7 +388,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) ...@@ -389,7 +388,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
} }
if (sendcmd->commands_filename) { if (sendcmd->commands_filename) {
uint8_t *file_buf; uint8_t *file_buf, *buf;
size_t file_bufsize; size_t file_bufsize;
ret = av_file_map(sendcmd->commands_filename, ret = av_file_map(sendcmd->commands_filename,
&file_buf, &file_bufsize, 0, ctx); &file_buf, &file_bufsize, 0, ctx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment