comparison roqaudioenc.c @ 9007:043574c5c153 libavcodec

Add missing av_cold in static init/close functions. Patch by Daniel Verkamp daniel at drv dot nu.
author stefano
date Sun, 22 Feb 2009 13:48:55 +0000
parents d4f9b58f6425
children 7955db355703
comparison
equal deleted inserted replaced
9006:37ac731fe32c 9007:043574c5c153
47 int mid= s*s + s; 47 int mid= s*s + s;
48 dpcmValues[i]= s + (i>mid); 48 dpcmValues[i]= s + (i>mid);
49 } 49 }
50 } 50 }
51 51
52 static int roq_dpcm_encode_init(AVCodecContext *avctx) 52 static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx)
53 { 53 {
54 ROQDPCMContext *context = avctx->priv_data; 54 ROQDPCMContext *context = avctx->priv_data;
55 55
56 if (avctx->channels > 2) { 56 if (avctx->channels > 2) {
57 av_log(avctx, AV_LOG_ERROR, "Audio must be mono or stereo\n"); 57 av_log(avctx, AV_LOG_ERROR, "Audio must be mono or stereo\n");