diff options
author | Steven Liu <lingjiujianke@gmail.com> | 2016-08-25 05:40:17 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-25 18:37:29 +0200 |
commit | 500662784341373d625af629cad94826beca3bc8 (patch) | |
tree | c216320d0599428cbb242723719308267c9a909c | |
parent | e1ced854f2fb5ca1940928d20ef17b67d30815e8 (diff) | |
download | ffmpeg-500662784341373d625af629cad94826beca3bc8.tar.gz |
tests/audiomatch: Fix compile warning
Making sure bestpos is initialized to zero to prevent gcc from kvetching.
It's harmless (although it's not obvious that it's harmless)
from code inspection:
tests/audiomatch.c: In function ‘main’:
tests/audiomatch.c:40: warning: ‘bestpos’ may be used uninitialized in this function
Thanks to Moritz Barsnick for first bringing this to the attention.
Signed-off-by: LiuQi <liuqi@gosun.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | tests/audiomatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/audiomatch.c b/tests/audiomatch.c index 9752f6819d..ca56df09b3 100644 --- a/tests/audiomatch.c +++ b/tests/audiomatch.c @@ -37,7 +37,7 @@ int main(int argc, char **argv){ FILE *f[2]; int i, pos; int siglen, datlen; - int bestpos; + int bestpos = 0; double bestc=0; double sigamp= 0; int16_t *signal, *data; |