Mercurial > libavcodec.hg
diff roqvideoenc.c @ 8628:e49a2e1f0020 libavcodec
Replace calls to the deprecated function av_init_random() with
corresponding calls to av_random_init().
author | stefano |
---|---|
date | Sun, 18 Jan 2009 23:04:33 +0000 |
parents | d6bab465b82c |
children | 1fa3e8a72ca5 |
line wrap: on
line diff
--- a/roqvideoenc.c Sun Jan 18 22:57:40 2009 +0000 +++ b/roqvideoenc.c Sun Jan 18 23:04:33 2009 +0000 @@ -929,7 +929,7 @@ { RoqContext *enc = avctx->priv_data; - av_init_random(1, &enc->randctx); + av_random_init(&enc->randctx, 1); enc->framesSinceKeyframe = 0; if ((avctx->width & 0xf) || (avctx->height & 0xf)) {