diff options
Diffstat (limited to 'libavcodec/rangecoder.c')
-rw-r--r-- | libavcodec/rangecoder.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c index fcadfe47d1..af0a8c009e 100644 --- a/libavcodec/rangecoder.c +++ b/libavcodec/rangecoder.c @@ -33,11 +33,12 @@ #include <string.h> +#include "libavutil/attributes.h" #include "avcodec.h" #include "rangecoder.h" #include "bytestream.h" -void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size) +av_cold void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size) { c->bytestream_start = c->bytestream = buf; @@ -48,7 +49,8 @@ void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size) c->outstanding_byte = -1; } -void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, int buf_size) +av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, + int buf_size) { /* cast to avoid compiler warning */ ff_init_range_encoder(c, (uint8_t *)buf, buf_size); |