Mercurial > libavcodec.hg
comparison mimic.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 | d9711ab4a934 |
children | 1aa282868038 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
100 43, 50, 57, 58, 51, 44, 37, 30, | 100 43, 50, 57, 58, 51, 44, 37, 30, |
101 23, 31, 38, 45, 52, 59, 39, 46, | 101 23, 31, 38, 45, 52, 59, 39, 46, |
102 53, 60, 61, 54, 47, 55, 62, 63 | 102 53, 60, 61, 54, 47, 55, 62, 63 |
103 }; | 103 }; |
104 | 104 |
105 static int mimic_decode_init(AVCodecContext *avctx) | 105 static av_cold int mimic_decode_init(AVCodecContext *avctx) |
106 { | 106 { |
107 MimicContext *ctx = avctx->priv_data; | 107 MimicContext *ctx = avctx->priv_data; |
108 | 108 |
109 ctx->prev_index = 0; | 109 ctx->prev_index = 0; |
110 ctx->cur_index = 15; | 110 ctx->cur_index = 15; |
369 avctx->release_buffer(avctx, &ctx->buf_ptrs[ctx->cur_index]); | 369 avctx->release_buffer(avctx, &ctx->buf_ptrs[ctx->cur_index]); |
370 | 370 |
371 return buf_size; | 371 return buf_size; |
372 } | 372 } |
373 | 373 |
374 static int mimic_decode_end(AVCodecContext *avctx) | 374 static av_cold int mimic_decode_end(AVCodecContext *avctx) |
375 { | 375 { |
376 MimicContext *ctx = avctx->priv_data; | 376 MimicContext *ctx = avctx->priv_data; |
377 int i; | 377 int i; |
378 | 378 |
379 av_free(ctx->swap_buf); | 379 av_free(ctx->swap_buf); |