gst/audioresample/: add room for extra overlap samples when asked to transform size...
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 25 Aug 2005 12:31:31 +0000 (12:31 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 25 Aug 2005 12:31:31 +0000 (12:31 +0000)
commit7647f7fc4e839c58ea4fcfef005f0aa65d0ace4d
treef629c91ca6874f77894abcde6f57cb23b2a216b4
parent2a13ddfd6521c83da2425031406afff75ea03d50
gst/audioresample/: add room for extra overlap samples when asked to transform size protect against possible mem corr...

Original commit message from CVS:
* gst/audioresample/debug.c:
* gst/audioresample/gstaudioresample.c:
add room for extra overlap samples when asked to transform size
protect against possible mem corruption and check for discrepancies
between written size and outbuffer's size so we can warn for
potential problems
* gst/audioresample/resample.c: (resample_init),
(resample_get_output_size_for_input), (resample_get_output_size),
(resample_set_n_channels), (resample_set_format):
set debug level based on RESAMPLE_DEBUG env var
make sure that get_output_size* returns a whole number of
sample_size
set sample_size each time either channel or format is set
* gst/audioresample/resample_chunk.c: (resample_scale_chunk):
* gst/audioresample/resample_functable.c:
(resample_scale_functable):
* gst/audioresample/resample_ref.c: (resample_scale_ref):
remove r->sample_size, it's done in resample.c now
add some debugging to the ref implementation
make sure we only give back bytes that are wholes of the sample
size
ChangeLog
gst/audioresample/debug.c
gst/audioresample/gstaudioresample.c
gst/audioresample/resample.c
gst/audioresample/resample_chunk.c
gst/audioresample/resample_functable.c
gst/audioresample/resample_ref.c