[FFmpeg-cvslog] swr: replace deprecated av_set_int() with av_opt_set_int().

Clément Bœsch git at videolan.org
Wed Nov 16 07:27:42 CET 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Nov 16 00:33:19 2011 +0100| [df72ae673f3743a57726c86f07677fbc14a0117c] | committer: Clément Bœsch

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=df72ae673f3743a57726c86f07677fbc14a0117c
---

 libswresample/swresample.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index c6ae726..cec577e 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -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_ctx= log_ctx;
 
-    av_set_int(s, "ocl", out_ch_layout);
-    av_set_int(s, "osf", out_sample_fmt);
-    av_set_int(s, "osr", out_sample_rate);
-    av_set_int(s, "icl", in_ch_layout);
-    av_set_int(s, "isf", in_sample_fmt);
-    av_set_int(s, "isr", in_sample_rate);
+    av_opt_set_int(s, "ocl", out_ch_layout,   0);
+    av_opt_set_int(s, "osf", out_sample_fmt,  0);
+    av_opt_set_int(s, "osr", out_sample_rate, 0);
+    av_opt_set_int(s, "icl", in_ch_layout,    0);
+    av_opt_set_int(s, "isf", in_sample_fmt,   0);
+    av_opt_set_int(s, "isr", in_sample_rate,  0);
 
     s->channel_map = channel_map;
     s-> in.ch_count= av_get_channel_layout_nb_channels(s-> in_ch_layout);



More information about the ffmpeg-cvslog mailing list