diff options
Diffstat (limited to 'libswresample/swresample_test.c')
-rw-r--r-- | libswresample/swresample_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libswresample/swresample_test.c b/libswresample/swresample_test.c index 1a37bcd5d2..037c91eb90 100644 --- a/libswresample/swresample_test.c +++ b/libswresample/swresample_test.c @@ -130,12 +130,12 @@ int main(int argc, char **argv){ in_ch_count, out_ch_count, in_sample_rate, out_sample_rate, av_get_sample_fmt_name(in_sample_fmt), av_get_sample_fmt_name(out_sample_fmt)); - forw_ctx = swr_alloc2(forw_ctx, out_ch_layout, out_sample_fmt+planar_out, out_sample_rate, - in_ch_layout, in_sample_fmt+planar_in , in_sample_rate, - NULL, 0, 0); - backw_ctx = swr_alloc2(backw_ctx,in_ch_layout, in_sample_fmt, in_sample_rate, - out_ch_layout, out_sample_fmt+planar_out, out_sample_rate, - NULL, 0, 0); + forw_ctx = swr_alloc_set_opts(forw_ctx, out_ch_layout, out_sample_fmt+planar_out, out_sample_rate, + in_ch_layout, in_sample_fmt+planar_in , in_sample_rate, + NULL, 0, 0); + backw_ctx = swr_alloc_set_opts(backw_ctx, in_ch_layout, in_sample_fmt, in_sample_rate, + out_ch_layout, out_sample_fmt+planar_out, out_sample_rate, + NULL, 0, 0); if(swr_init( forw_ctx) < 0) fprintf(stderr, "swr_init(->) failed\n"); if(swr_init(backw_ctx) < 0) |