Mercurial > libavcodec.hg
comparison vorbis_enc.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 | 2b72f9bc4f06 |
children | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
930 venc->have_saved = 0; | 930 venc->have_saved = 0; |
931 } | 931 } |
932 return 1; | 932 return 1; |
933 } | 933 } |
934 | 934 |
935 static int vorbis_encode_init(AVCodecContext * avccontext) | 935 static av_cold int vorbis_encode_init(AVCodecContext * avccontext) |
936 { | 936 { |
937 venc_context_t * venc = avccontext->priv_data; | 937 venc_context_t * venc = avccontext->priv_data; |
938 | 938 |
939 if (avccontext->channels != 2) { | 939 if (avccontext->channels != 2) { |
940 av_log(avccontext, AV_LOG_ERROR, "Current FFmpeg Vorbis encoder only supports 2 channels.\n"); | 940 av_log(avccontext, AV_LOG_ERROR, "Current FFmpeg Vorbis encoder only supports 2 channels.\n"); |
1013 flush_put_bits(&pb); | 1013 flush_put_bits(&pb); |
1014 return (put_bits_count(&pb) + 7) / 8; | 1014 return (put_bits_count(&pb) + 7) / 8; |
1015 } | 1015 } |
1016 | 1016 |
1017 | 1017 |
1018 static int vorbis_encode_close(AVCodecContext * avccontext) | 1018 static av_cold int vorbis_encode_close(AVCodecContext * avccontext) |
1019 { | 1019 { |
1020 venc_context_t * venc = avccontext->priv_data; | 1020 venc_context_t * venc = avccontext->priv_data; |
1021 int i; | 1021 int i; |
1022 | 1022 |
1023 if (venc->codebooks) | 1023 if (venc->codebooks) |