summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2017-03-12 00:24:21 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2017-03-13 02:45:36 +0700
commit6c7a0876fefdd3c919afcabf493492cb4946ca6a (patch)
tree6dc94a7c654e3dd6b1eb855322de028854018a2c /libswresample
parentbf238a6a3ca92de686e0e103135c1336f33f685b (diff)
downloadffmpeg-6c7a0876fefdd3c919afcabf493492cb4946ca6a.tar.gz
swresample/swresample: do not reset tsf on swr_alloc_set_opts
so tsf option in aresample will have effect previously tsf/internal_sample_format had no effect fate is updated s32p previously used fltp internally dblp previously used fltp/dblp internally Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/swresample.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index dea61391ac..f2e66005eb 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -84,9 +84,6 @@ struct SwrContext *swr_alloc_set_opts(struct SwrContext *s,
if (av_opt_set_int(s, "isr", in_sample_rate, 0) < 0)
goto fail;
- if (av_opt_set_int(s, "tsf", AV_SAMPLE_FMT_NONE, 0) < 0)
- goto fail;
-
if (av_opt_set_int(s, "ich", av_get_channel_layout_nb_channels(s-> user_in_ch_layout), 0) < 0)
goto fail;