Mercurial > libavcodec.hg
comparison ulti.c @ 6517:48759bfbd073 libavcodec
Apply 'cold' attribute to init/uninit functions in libavcodec
author | zuxy |
---|---|
date | Fri, 21 Mar 2008 03:11:20 +0000 |
parents | dfdff1ca78a7 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
39 int width, height, blocks; | 39 int width, height, blocks; |
40 AVFrame frame; | 40 AVFrame frame; |
41 const uint8_t *ulti_codebook; | 41 const uint8_t *ulti_codebook; |
42 } UltimotionDecodeContext; | 42 } UltimotionDecodeContext; |
43 | 43 |
44 static int ulti_decode_init(AVCodecContext *avctx) | 44 static av_cold int ulti_decode_init(AVCodecContext *avctx) |
45 { | 45 { |
46 UltimotionDecodeContext *s = avctx->priv_data; | 46 UltimotionDecodeContext *s = avctx->priv_data; |
47 | 47 |
48 s->avctx = avctx; | 48 s->avctx = avctx; |
49 s->width = avctx->width; | 49 s->width = avctx->width; |
391 *(AVFrame*)data= s->frame; | 391 *(AVFrame*)data= s->frame; |
392 | 392 |
393 return buf_size; | 393 return buf_size; |
394 } | 394 } |
395 | 395 |
396 static int ulti_decode_end(AVCodecContext *avctx) | 396 static av_cold int ulti_decode_end(AVCodecContext *avctx) |
397 { | 397 { |
398 /* UltimotionDecodeContext *s = avctx->priv_data;*/ | 398 /* UltimotionDecodeContext *s = avctx->priv_data;*/ |
399 | 399 |
400 return 0; | 400 return 0; |
401 } | 401 } |