mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec: use av_opt_set() instead of deprecated av_set_string3()
This commit is contained in:
parent
fa9aeb82e2
commit
513b691955
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user