diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-04 18:54:14 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-04 19:17:23 +0300 |
commit | e4f8a973aa8bdcd8a0d0cc9ed376fc8a8748ef34 (patch) | |
tree | dfbe233f8243badf20ca9af59449acbb670abc50 /libswresample | |
parent | dc351e1381900ead3288079f93f359161804d024 (diff) |
swresample: Fix swr_drop_output so it does not flush the buffers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample')
-rw-r--r-- | libswresample/swresample.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c index b4d8f32859..b0bd697e04 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -752,13 +752,14 @@ int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_coun } int swr_drop_output(struct SwrContext *s, int count){ + const uint8_t *tmp_arg[SWR_CH_MAX]; s->drop_output += count; if(s->drop_output <= 0) return 0; av_log(s, AV_LOG_VERBOSE, "discarding %d audio samples\n", count); - return swr_convert(s, NULL, s->drop_output, NULL, 0); + return swr_convert(s, NULL, s->drop_output, tmp_arg, 0); } int swr_inject_silence(struct SwrContext *s, int count){ |