summaryrefslogtreecommitdiff
path: root/libswresample/swresample.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-09 02:26:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-09 02:26:20 +0200
commit31a797eb2846ffa9c7ef2fa0abf81e946a173e6e (patch)
treec80661f76eca024fb1b357c7e0da1b4e5023f124 /libswresample/swresample.c
parentdd081f98dded8e268a70468a43b25b077c8c3571 (diff)
swr: add av_cold to init/free functions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample.c')
-rw-r--r--libswresample/swresample.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index e5ca54f034..fdd5aae43b 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -144,7 +144,7 @@ const AVClass *swr_get_class(void)
return &av_class;
}
-struct SwrContext *swr_alloc(void){
+av_cold struct SwrContext *swr_alloc(void){
SwrContext *s= av_mallocz(sizeof(SwrContext));
if(s){
s->av_class= &av_class;
@@ -187,7 +187,7 @@ static void free_temp(AudioData *a){
memset(a, 0, sizeof(*a));
}
-void swr_free(SwrContext **ss){
+av_cold void swr_free(SwrContext **ss){
SwrContext *s= *ss;
if(s){
free_temp(&s->postin);
@@ -205,7 +205,7 @@ void swr_free(SwrContext **ss){
av_freep(ss);
}
-int swr_init(struct SwrContext *s){
+av_cold int swr_init(struct SwrContext *s){
s->in_buffer_index= 0;
s->in_buffer_count= 0;
s->resample_in_constraint= 0;