Commit 9f33b0ed authored by Jun Zhao's avatar Jun Zhao

avfilter/tests/integral: Fix build warning after adjust the location

Fix build warning like "warning: ISO C90 forbids mixed declarations
and code" after adjust the location for malloc fail check.
Reviewed-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarJun Zhao <mypopydev@gmail.com>
parent 6382d033
...@@ -33,6 +33,9 @@ static void display_integral(const uint32_t *ii, int w, int h, int lz_32) ...@@ -33,6 +33,9 @@ static void display_integral(const uint32_t *ii, int w, int h, int lz_32)
int main(void) int main(void)
{ {
int ret = 0, xoff, yoff; int ret = 0, xoff, yoff;
uint32_t *ii_start;
uint32_t *ii_start2;
NLMeansDSPContext dsp = {0};
// arbitrary test source of size 6x4 and linesize=8 // arbitrary test source of size 6x4 and linesize=8
const int w = 6, h = 5, lz = 8; const int w = 6, h = 5, lz = 8;
...@@ -57,10 +60,8 @@ int main(void) ...@@ -57,10 +60,8 @@ int main(void)
if (!ii || !ii2) if (!ii || !ii2)
return -1; return -1;
uint32_t *ii_start = ii + ii_lz_32 + 1; // skip top 0-line and left 0-column ii_start = ii + ii_lz_32 + 1; // skip top 0-line and left 0-column
uint32_t *ii_start2 = ii2 + ii_lz_32 + 1; // skip top 0-line and left 0-column ii_start2 = ii2 + ii_lz_32 + 1; // skip top 0-line and left 0-column
NLMeansDSPContext dsp = {0};
ff_nlmeans_init(&dsp); ff_nlmeans_init(&dsp);
......
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