Mercurial > libavcodec.hg
comparison fraps.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 | 36fb492f44cc |
children | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
53 /** | 53 /** |
54 * initializes decoder | 54 * initializes decoder |
55 * @param avctx codec context | 55 * @param avctx codec context |
56 * @return 0 on success or negative if fails | 56 * @return 0 on success or negative if fails |
57 */ | 57 */ |
58 static int decode_init(AVCodecContext *avctx) | 58 static av_cold int decode_init(AVCodecContext *avctx) |
59 { | 59 { |
60 FrapsContext * const s = avctx->priv_data; | 60 FrapsContext * const s = avctx->priv_data; |
61 | 61 |
62 avctx->coded_frame = (AVFrame*)&s->frame; | 62 avctx->coded_frame = (AVFrame*)&s->frame; |
63 avctx->pix_fmt= PIX_FMT_NONE; /* set in decode_frame */ | 63 avctx->pix_fmt= PIX_FMT_NONE; /* set in decode_frame */ |
341 /** | 341 /** |
342 * closes decoder | 342 * closes decoder |
343 * @param avctx codec context | 343 * @param avctx codec context |
344 * @return 0 on success or negative if fails | 344 * @return 0 on success or negative if fails |
345 */ | 345 */ |
346 static int decode_end(AVCodecContext *avctx) | 346 static av_cold int decode_end(AVCodecContext *avctx) |
347 { | 347 { |
348 FrapsContext *s = (FrapsContext*)avctx->priv_data; | 348 FrapsContext *s = (FrapsContext*)avctx->priv_data; |
349 | 349 |
350 if (s->frame.data[0]) | 350 if (s->frame.data[0]) |
351 avctx->release_buffer(avctx, &s->frame); | 351 avctx->release_buffer(avctx, &s->frame); |