diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-05-06 14:34:13 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-05-06 14:34:13 +0000 |
commit | 6050ee100f593585850bf1ead5b02cc1f565b155 (patch) | |
tree | bf519f29b04d3f938565bf49cb0f3bf20d060c62 /pjmedia/src/test/codec_vectors.c | |
parent | b409e7527b5e16cadbc976a1066b9c69300ffc9b (diff) |
More ticket #774: fixed G.722.1 compilation warnings on linux/gcc-4.3.2
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2675 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/test/codec_vectors.c')
-rw-r--r-- | pjmedia/src/test/codec_vectors.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pjmedia/src/test/codec_vectors.c b/pjmedia/src/test/codec_vectors.c index 787752a2..f68913d3 100644 --- a/pjmedia/src/test/codec_vectors.c +++ b/pjmedia/src/test/codec_vectors.c @@ -125,11 +125,14 @@ static int codec_test_encode(pjmedia_codec_mgr *mgr, } if (out_frame.size) { - fwrite(out_frame.buf, out_frame.size, 1, output); + int cnt; + + cnt = fwrite(out_frame.buf, out_frame.size, 1, output); if (encoded_frame_len == 0) encoded_frame_len = out_frame.size; - } } + } + } fclose(output); output = NULL; @@ -490,7 +493,7 @@ on_return: return rc; } - +#if PJMEDIA_HAS_G7221_CODEC /* For ITU testing, off the 2 lsbs. */ static void g7221_pcm_manip(short *pcm, unsigned count) { @@ -499,6 +502,7 @@ static void g7221_pcm_manip(short *pcm, unsigned count) pcm[i] &= 0xfffc; } +#endif /* PJMEDIA_HAS_G7221_CODEC */ int codec_test_vectors(void) { |