comparison opt.c @ 8406:ea27308fa023 libavcodec

Remove calls to deprecated av_set_string2() with calls to av_set_string3().
author stefano
date Fri, 19 Dec 2008 22:29:30 +0000
parents 0030146fc2ba
children 8903ad65c412
comparison
equal deleted inserted replaced
8405:f94a6d6df87e 8406:ea27308fa023
205 return NULL; 205 return NULL;
206 return o; 206 return o;
207 } 207 }
208 208
209 const AVOption *av_set_string(void *obj, const char *name, const char *val){ 209 const AVOption *av_set_string(void *obj, const char *name, const char *val){
210 return av_set_string2(obj, name, val, 0); 210 const AVOption *o;
211 if (av_set_string3(obj, name, val, 0, &o) < 0)
212 return NULL;
213 return o;
211 } 214 }
212 215
213 const AVOption *av_set_double(void *obj, const char *name, double n){ 216 const AVOption *av_set_double(void *obj, const char *name, double n){
214 return av_set_number(obj, name, n, 1, 1); 217 return av_set_number(obj, name, n, 1, 1);
215 } 218 }