Mercurial > libavcodec.hg
comparison vorbis_dec.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 | 97a875069d54 |
children | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
921 return 0; | 921 return 0; |
922 } | 922 } |
923 | 923 |
924 // Process the extradata using the functions above (identification header, setup header) | 924 // Process the extradata using the functions above (identification header, setup header) |
925 | 925 |
926 static int vorbis_decode_init(AVCodecContext *avccontext) { | 926 static av_cold int vorbis_decode_init(AVCodecContext *avccontext) { |
927 vorbis_context *vc = avccontext->priv_data ; | 927 vorbis_context *vc = avccontext->priv_data ; |
928 uint8_t *headers = avccontext->extradata; | 928 uint8_t *headers = avccontext->extradata; |
929 int headers_len=avccontext->extradata_size; | 929 int headers_len=avccontext->extradata_size; |
930 uint8_t *header_start[3]; | 930 uint8_t *header_start[3]; |
931 int header_len[3]; | 931 int header_len[3]; |
1615 return buf_size ; | 1615 return buf_size ; |
1616 } | 1616 } |
1617 | 1617 |
1618 // Close decoder | 1618 // Close decoder |
1619 | 1619 |
1620 static int vorbis_decode_close(AVCodecContext *avccontext) { | 1620 static av_cold int vorbis_decode_close(AVCodecContext *avccontext) { |
1621 vorbis_context *vc = avccontext->priv_data; | 1621 vorbis_context *vc = avccontext->priv_data; |
1622 | 1622 |
1623 vorbis_free(vc); | 1623 vorbis_free(vc); |
1624 | 1624 |
1625 return 0 ; | 1625 return 0 ; |