summaryrefslogtreecommitdiffstats
path: root/av_opts.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-04-20 02:59:45 +0300
committerUoti Urpala <uau@mplayer2.org>2011-04-20 04:36:05 +0300
commitc33fafd6f1bc2a430c114231cecc6e1c56c1f939 (patch)
treeffea28dc9b2845037a51cf3314b9b1f326fc1d2e /av_opts.c
parent726c28dd9bbaf49d28d78f21fabd6d2d8336b9cd (diff)
downloadmpv-c33fafd6f1bc2a430c114231cecc6e1c56c1f939.tar.bz2
mpv-c33fafd6f1bc2a430c114231cecc6e1c56c1f939.tar.xz
Update libav API uses
Update various code to use newer alternatives instead of deprecated functions/fields that are being dropped at libav API bump. An exception is avcodec_thread_init() which is being dropped even though it's still _necessary_ with fairly recent libav versions, so there's no good alternative which would work with both those recent versions and latest libavcodec. I think there are grounds to consider the drop premature and revert it for now; if that doesn't happen I'll add a version-test #if check around it later.
Diffstat (limited to 'av_opts.c')
-rw-r--r--av_opts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/av_opts.c b/av_opts.c
index 452253b4de..59f47edf52 100644
--- a/av_opts.c
+++ b/av_opts.c
@@ -37,7 +37,7 @@ int parse_avopts(void *v, char *str){
arg = strchr(str, '=');
if(arg) *arg++= 0;
- if(!av_set_string(v, str, arg)){
+ if (av_set_string3(v, str, arg, 0, NULL) < 0) {
free(start);
return -1;
}