diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-27 16:15:31 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-27 16:15:31 +0100 |
commit | 78cd9c5671d87f9ac1f1a1729ccc4757ec944e84 (patch) | |
tree | dcdf0cf7e3bf1b5ce196b60713467ce7f0d3cc07 /libpostproc | |
parent | a22032281c10ce8f24a0b1b032ee2dc0d948f9b8 (diff) | |
download | ffmpeg-78cd9c5671d87f9ac1f1a1729ccc4757ec944e84.tar.gz |
postproc: mark alloc/free context functions as av_cold
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc')
-rw-r--r-- | libpostproc/postprocess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 4d54c6dc89..9d8978204e 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -914,7 +914,7 @@ static const char * context_to_name(void * ptr) { static const AVClass av_codec_context_class = { "Postproc", context_to_name, NULL }; -pp_context *pp_get_context(int width, int height, int cpuCaps){ +av_cold pp_context *pp_get_context(int width, int height, int cpuCaps){ PPContext *c= av_mallocz(sizeof(PPContext)); int stride= FFALIGN(width, 16); //assumed / will realloc if needed int qpStride= (width+15)/16 + 2; //assumed / will realloc if needed @@ -947,7 +947,7 @@ pp_context *pp_get_context(int width, int height, int cpuCaps){ return c; } -void pp_free_context(void *vc){ +av_cold void pp_free_context(void *vc){ PPContext *c = (PPContext*)vc; int i; |