Mercurial > libavcodec.hg
comparison huffyuv.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 | 31138c296ac6 |
children | ee59f4f22dce |
comparison
equal
deleted
inserted
replaced
9006:37ac731fe32c | 9007:043574c5c153 |
---|---|
429 av_log(s->avctx, AV_LOG_DEBUG, "v1 huffyuv is not supported \n"); | 429 av_log(s->avctx, AV_LOG_DEBUG, "v1 huffyuv is not supported \n"); |
430 return -1; | 430 return -1; |
431 #endif | 431 #endif |
432 } | 432 } |
433 | 433 |
434 static void alloc_temp(HYuvContext *s){ | 434 static av_cold void alloc_temp(HYuvContext *s){ |
435 int i; | 435 int i; |
436 | 436 |
437 if(s->bitstream_bpp<24){ | 437 if(s->bitstream_bpp<24){ |
438 for(i=0; i<3; i++){ | 438 for(i=0; i<3; i++){ |
439 s->temp[i]= av_malloc(s->width + 16); | 439 s->temp[i]= av_malloc(s->width + 16); |
443 s->temp[i]= av_malloc(4*s->width + 16); | 443 s->temp[i]= av_malloc(4*s->width + 16); |
444 } | 444 } |
445 } | 445 } |
446 } | 446 } |
447 | 447 |
448 static int common_init(AVCodecContext *avctx){ | 448 static av_cold int common_init(AVCodecContext *avctx){ |
449 HYuvContext *s = avctx->priv_data; | 449 HYuvContext *s = avctx->priv_data; |
450 | 450 |
451 s->avctx= avctx; | 451 s->avctx= avctx; |
452 s->flags= avctx->flags; | 452 s->flags= avctx->flags; |
453 | 453 |