# HG changeset patch # User reimar # Date 1327747852 0 # Node ID 506577fd3e072b6e8bb0f2a9421adddcf7b91c99 # Parent 7e1d9cf6a0db6b2ec4fbf4bda0fce0b715b80cba Replace deprecated av_set_int. diff -r 7e1d9cf6a0db -r 506577fd3e07 libmpdemux/demux_lavf.c --- a/libmpdemux/demux_lavf.c Sat Jan 28 10:47:02 2012 +0000 +++ b/libmpdemux/demux_lavf.c Sat Jan 28 10:50:52 2012 +0000 @@ -478,7 +478,6 @@ static demuxer_t* demux_open_lavf(demuxer_t *demuxer){ AVFormatContext *avfc; - const AVOption *opt; AVDictionaryEntry *t = NULL; lavf_priv_t *priv= demuxer->priv; int i; @@ -496,12 +495,12 @@ avfc->flags |= AVFMT_FLAG_IGNIDX; if(opt_probesize) { - opt = av_set_int(avfc, "probesize", opt_probesize); - if(!opt) mp_msg(MSGT_HEADER,MSGL_ERR, "demux_lavf, couldn't set option probesize to %u\n", opt_probesize); + if (av_opt_set_int(avfc, "probesize", opt_probesize, 0) < 0) + mp_msg(MSGT_HEADER,MSGL_ERR, "demux_lavf, couldn't set option probesize to %u\n", opt_probesize); } if(opt_analyzeduration) { - opt = av_set_int(avfc, "analyzeduration", opt_analyzeduration * AV_TIME_BASE); - if(!opt) mp_msg(MSGT_HEADER,MSGL_ERR, "demux_lavf, couldn't set option analyzeduration to %u\n", opt_analyzeduration); + if (av_opt_set_int(avfc, "analyzeduration", opt_analyzeduration * AV_TIME_BASE, 0) < 0) + mp_msg(MSGT_HEADER,MSGL_ERR, "demux_lavf, couldn't set option analyzeduration to %u\n", opt_analyzeduration); } if(opt_avopt){