Mercurial > mplayer.hg
changeset 34526:506577fd3e07
Replace deprecated av_set_int.
author | reimar |
---|---|
date | Sat, 28 Jan 2012 10:50:52 +0000 |
parents | 7e1d9cf6a0db |
children | 11c8d827b55e |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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){