aboutsummaryrefslogtreecommitdiffstats
path: root/libgsmhr
AgeCommit message (Collapse)AuthorFilesLines
2018-01-08libgsmhr/libgsmhr.c: fix memory leak after gsmhr_exit()Vadim Yanitskiy1-0/+1
During the HR codec initialization, a part of the state is allocated, but not freed at exit. Let's fix this. Found during debugging with Valgrind: 4,932 bytes in 1 blocks are definitely lost in loss record 177 of 179 at 0x4C2AB80: malloc (in vgpreload_memcheck-amd64-linux.so) by 0x6381C8F: gsmhr_init (libgsmhr.c:63) by 0x526DF62: osmo_gapk_pq_queue_codec (pq_codec.c:48) by 0x401ACE: make_processing_chain (app_osmo_gapk.c:573) by 0x401ACE: main (app_osmo_gapk.c:765) Change-Id: Ie9ead89c2272782de8d928f29753e6a523cf8834
2015-12-30libgsmhr: Make it safe to decode/encode different streams at onceSylvain Munaut2-0/+34
Basically the reference code has a bunch of global state. With some minimal patchihg (previous commit) we can ensure that all that state is within .bss So what we do it to save/restore the bss section between calls of the reference code so we can process several in // and we don't have to completely fix all reference to global state in the reference codec. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-12-30libgsmhr: Add some code cleanup / speedup patches for reference codecSylvain Munaut5-1/+388
Mostly this will help witht the upcoming bss switcheroo patch Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-12-30libgsmhr: Use patch instead of 'sed'Sylvain Munaut3-3/+552
Patches are without function-name and without context to minimize what we have to include. The current patchset does exactly what the previous 'sed' did, but this will make it easier to add more. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-12-30libgsmhr: Fix parallel build dependencySylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-12-30libgsmhr: fix Makefile.am dependency on source downloadSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-12-30libgsmhr/fetch_sources: Only use the filename and not any pathSylvain Munaut1-1/+1
There shouldn't be any but somebody might be nasty :p Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-12-30build: Use autotools 'subdir-objects' optionSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-11-05Fix dist / distcheck targets by including fetch_sources.py in EXTRA_DISTHarald Welte1-1/+3
2013-12-13libgsmhr: Update source locationSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-17build: Use AM_CPPFLAGS in Makefile.amSylvain Munaut1-1/+1
Since automake 1.13 INCLUDES is depricates and causes a warning Inspired from similar patches by Alexander Huemer for other osmocom projects Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-12[3/4] HR support: Add actual wrapper code to call reference codeSylvain Munaut1-3/+59
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-12[2/4] HR support: Add logic to fetch reference source code and build itSylvain Munaut2-1/+83
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-12[1/4] HR support: Add autotools skeleton for libgsmhrSylvain Munaut2-0/+62
Not functional yet, just the autotools magic to make a library Signed-off-by: Sylvain Munaut <tnt@246tNt.com>