[FFmpeg-devel] [PATCH] swresample/swresample: do not reset tsf on swr_alloc_set_opts

Muhammad Faiz mfcc64 at gmail.com
Fri Mar 10 01:55:27 EET 2017


so tsf option in aresample will have effect

Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
---
 libswresample/swresample.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index dea6139..f2e6600 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;
 
-- 
2.9.3



More information about the ffmpeg-devel mailing list