Mercurial > libavcodec.hg
comparison cinepak.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 | 814c8bd77d91 |
children | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
383 y0 = s->strips[i].y2; | 383 y0 = s->strips[i].y2; |
384 } | 384 } |
385 return 0; | 385 return 0; |
386 } | 386 } |
387 | 387 |
388 static int cinepak_decode_init(AVCodecContext *avctx) | 388 static av_cold int cinepak_decode_init(AVCodecContext *avctx) |
389 { | 389 { |
390 CinepakContext *s = avctx->priv_data; | 390 CinepakContext *s = avctx->priv_data; |
391 | 391 |
392 s->avctx = avctx; | 392 s->avctx = avctx; |
393 s->width = (avctx->width + 3) & ~3; | 393 s->width = (avctx->width + 3) & ~3; |
441 | 441 |
442 /* report that the buffer was completely consumed */ | 442 /* report that the buffer was completely consumed */ |
443 return buf_size; | 443 return buf_size; |
444 } | 444 } |
445 | 445 |
446 static int cinepak_decode_end(AVCodecContext *avctx) | 446 static av_cold int cinepak_decode_end(AVCodecContext *avctx) |
447 { | 447 { |
448 CinepakContext *s = avctx->priv_data; | 448 CinepakContext *s = avctx->priv_data; |
449 | 449 |
450 if (s->frame.data[0]) | 450 if (s->frame.data[0]) |
451 avctx->release_buffer(avctx, &s->frame); | 451 avctx->release_buffer(avctx, &s->frame); |