diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-10-23 21:42:14 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-10-23 22:08:55 +0200 |
commit | bd6240e7e9f3d60b542fd517742fd546318f5917 (patch) | |
tree | b592426f52a0ba807f0da476cf68c427101a380a /libavfilter/f_sendcmd.c | |
parent | c7065f1f8953a73fe6eeaeb0cdb8adb5dbe99265 (diff) | |
download | ffmpeg-bd6240e7e9f3d60b542fd517742fd546318f5917.tar.gz |
lavfi/sendcmd: move buf init() variable to internal scope where it is used
Diffstat (limited to 'libavfilter/f_sendcmd.c')
-rw-r--r-- | libavfilter/f_sendcmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/f_sendcmd.c b/libavfilter/f_sendcmd.c index 9f1704586e..a60a0b1f41 100644 --- a/libavfilter/f_sendcmd.c +++ b/libavfilter/f_sendcmd.c @@ -374,7 +374,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args) { SendCmdContext *sendcmd = ctx->priv; int ret, i, j; - char *buf; sendcmd->class = &sendcmd_class; av_opt_set_defaults(sendcmd); @@ -389,7 +388,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) } if (sendcmd->commands_filename) { - uint8_t *file_buf; + uint8_t *file_buf, *buf; size_t file_bufsize; ret = av_file_map(sendcmd->commands_filename, &file_buf, &file_bufsize, 0, ctx); |