summaryrefslogtreecommitdiff
path: root/libswresample/soxr_resample.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2014-06-13 19:06:30 -0400
committerMichael Niedermayer <michaelni@gmx.at>2014-06-14 14:36:18 +0200
commitb785c62681a0a5a330b065e0754d27a313c44c8e (patch)
tree9fcafa9a2ff0fe1fa6f834c76019256b52058991 /libswresample/soxr_resample.c
parentd77815eeaac309742818f53be6cd2f4c6fa76cf1 (diff)
downloadffmpeg-b785c62681a0a5a330b065e0754d27a313c44c8e.tar.gz
swr: handle initial negative sample index outside DSP function.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/soxr_resample.c')
-rw-r--r--libswresample/soxr_resample.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libswresample/soxr_resample.c b/libswresample/soxr_resample.c
index 4c000db0ca..064451df45 100644
--- a/libswresample/soxr_resample.c
+++ b/libswresample/soxr_resample.c
@@ -87,7 +87,14 @@ static int64_t get_delay(struct SwrContext *s, int64_t base){
return (int64_t)(delay_s * base + .5);
}
+static int invert_initial_buffer(struct ResampleContext *c, AudioData *dst, const AudioData *src,
+ int in_count, int *out_idx, int *out_sz)
+{
+ return 0;
+}
+
struct Resampler const soxr_resampler={
create, destroy, process, flush, NULL /* set_compensation */, get_delay,
+ invert_initial_buffer,
};