[FFmpeg-cvslog] avcodec: use av_opt_set() instead of deprecated av_set_string3()

Justin Ruggles git at videolan.org
Sun Nov 20 03:03:19 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Nov 19 01:14:27 2011 -0500| [513b6919555b9e2b0c1f86fd5f02caaa14bcbe69] | committer: Justin Ruggles

avcodec: use av_opt_set() instead of deprecated av_set_string3()

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

 libavcodec/options.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/options.c b/libavcodec/options.c
index 76ca66c..100d4e6 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -588,7 +588,7 @@ int avcodec_get_context_defaults3(AVCodecContext *s, AVCodec *codec){
         int ret;
         const AVCodecDefault *d = codec->defaults;
         while (d->key) {
-            ret = av_set_string3(s, d->key, d->value, 0, NULL);
+            ret = av_opt_set(s, d->key, d->value, 0);
             av_assert0(ret >= 0);
             d++;
         }



More information about the ffmpeg-cvslog mailing list