diff options
author | James Zern <jzern@google.com> | 2023-04-12 14:52:33 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2023-04-12 14:57:28 -0700 |
commit | 556e4f6cadef38727ab2e83050915a5eee6584a4 (patch) | |
tree | e249c3b99d2a86747f9abd88e316f1b919db5c9f | |
parent | a3eb39ab6f22a09d06591db050bb07ede95fcd88 (diff) | |
download | libvpx-556e4f6cadef38727ab2e83050915a5eee6584a4.tar libvpx-556e4f6cadef38727ab2e83050915a5eee6584a4.tar.gz libvpx-556e4f6cadef38727ab2e83050915a5eee6584a4.tar.bz2 libvpx-556e4f6cadef38727ab2e83050915a5eee6584a4.zip |
vpxdec: clear -Wshadow warnings
Bug: webm:1793
Change-Id: I0b7f013682229cde50df7c62db9dab6eab0fd341
-rw-r--r-- | vpxdec.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -996,7 +996,7 @@ static int main_loop(int argc, const char **argv_) { if (single_file) { if (use_y4m) { - char buf[Y4M_BUFFER_SIZE] = { 0 }; + char y4m_buf[Y4M_BUFFER_SIZE] = { 0 }; size_t len = 0; if (img->fmt == VPX_IMG_FMT_I440 || img->fmt == VPX_IMG_FMT_I44016) { fprintf(stderr, "Cannot produce y4m output for 440 sampling.\n"); @@ -1005,21 +1005,22 @@ static int main_loop(int argc, const char **argv_) { if (frame_out == 1) { // Y4M file header len = y4m_write_file_header( - buf, sizeof(buf), vpx_input_ctx.width, vpx_input_ctx.height, - &vpx_input_ctx.framerate, img->fmt, img->bit_depth); + y4m_buf, sizeof(y4m_buf), vpx_input_ctx.width, + vpx_input_ctx.height, &vpx_input_ctx.framerate, img->fmt, + img->bit_depth); if (do_md5) { - MD5Update(&md5_ctx, (md5byte *)buf, (unsigned int)len); + MD5Update(&md5_ctx, (md5byte *)y4m_buf, (unsigned int)len); } else { - fputs(buf, outfile); + fputs(y4m_buf, outfile); } } // Y4M frame header - len = y4m_write_frame_header(buf, sizeof(buf)); + len = y4m_write_frame_header(y4m_buf, sizeof(y4m_buf)); if (do_md5) { - MD5Update(&md5_ctx, (md5byte *)buf, (unsigned int)len); + MD5Update(&md5_ctx, (md5byte *)y4m_buf, (unsigned int)len); } else { - fputs(buf, outfile); + fputs(y4m_buf, outfile); } } else { if (frame_out == 1) { |