Mercurial > libavcodec.hg
comparison msvideo1.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 | f282270c589f |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
55 | 55 |
56 int mode_8bit; /* if it's not 8-bit, it's 16-bit */ | 56 int mode_8bit; /* if it's not 8-bit, it's 16-bit */ |
57 | 57 |
58 } Msvideo1Context; | 58 } Msvideo1Context; |
59 | 59 |
60 static int msvideo1_decode_init(AVCodecContext *avctx) | 60 static av_cold int msvideo1_decode_init(AVCodecContext *avctx) |
61 { | 61 { |
62 Msvideo1Context *s = avctx->priv_data; | 62 Msvideo1Context *s = avctx->priv_data; |
63 | 63 |
64 s->avctx = avctx; | 64 s->avctx = avctx; |
65 | 65 |
317 | 317 |
318 /* report that the buffer was completely consumed */ | 318 /* report that the buffer was completely consumed */ |
319 return buf_size; | 319 return buf_size; |
320 } | 320 } |
321 | 321 |
322 static int msvideo1_decode_end(AVCodecContext *avctx) | 322 static av_cold int msvideo1_decode_end(AVCodecContext *avctx) |
323 { | 323 { |
324 Msvideo1Context *s = avctx->priv_data; | 324 Msvideo1Context *s = avctx->priv_data; |
325 | 325 |
326 if (s->frame.data[0]) | 326 if (s->frame.data[0]) |
327 avctx->release_buffer(avctx, &s->frame); | 327 avctx->release_buffer(avctx, &s->frame); |