comparison 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
comparison
equal deleted inserted replaced
8627:d6bab465b82c 8628:e49a2e1f0020
927 927
928 static int roq_encode_init(AVCodecContext *avctx) 928 static int roq_encode_init(AVCodecContext *avctx)
929 { 929 {
930 RoqContext *enc = avctx->priv_data; 930 RoqContext *enc = avctx->priv_data;
931 931
932 av_init_random(1, &enc->randctx); 932 av_random_init(&enc->randctx, 1);
933 933
934 enc->framesSinceKeyframe = 0; 934 enc->framesSinceKeyframe = 0;
935 if ((avctx->width & 0xf) || (avctx->height & 0xf)) { 935 if ((avctx->width & 0xf) || (avctx->height & 0xf)) {
936 av_log(avctx, AV_LOG_ERROR, "Dimensions must be divisible by 16\n"); 936 av_log(avctx, AV_LOG_ERROR, "Dimensions must be divisible by 16\n");
937 return -1; 937 return -1;