Commit df72ae67 authored by Clément Bœsch's avatar Clément Bœsch

swr: replace deprecated av_set_int() with av_opt_set_int().

parent ad561b57
...@@ -91,12 +91,12 @@ SwrContext *swr_alloc2(struct SwrContext *s, int64_t out_ch_layout, enum AVSampl ...@@ -91,12 +91,12 @@ SwrContext *swr_alloc2(struct SwrContext *s, int64_t out_ch_layout, enum AVSampl
s->log_level_offset= log_offset; s->log_level_offset= log_offset;
s->log_ctx= log_ctx; s->log_ctx= log_ctx;
av_set_int(s, "ocl", out_ch_layout); av_opt_set_int(s, "ocl", out_ch_layout, 0);
av_set_int(s, "osf", out_sample_fmt); av_opt_set_int(s, "osf", out_sample_fmt, 0);
av_set_int(s, "osr", out_sample_rate); av_opt_set_int(s, "osr", out_sample_rate, 0);
av_set_int(s, "icl", in_ch_layout); av_opt_set_int(s, "icl", in_ch_layout, 0);
av_set_int(s, "isf", in_sample_fmt); av_opt_set_int(s, "isf", in_sample_fmt, 0);
av_set_int(s, "isr", in_sample_rate); av_opt_set_int(s, "isr", in_sample_rate, 0);
s->channel_map = channel_map; s->channel_map = channel_map;
s-> in.ch_count= av_get_channel_layout_nb_channels(s-> in_ch_layout); s-> in.ch_count= av_get_channel_layout_nb_channels(s-> in_ch_layout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment