summaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/h264_altivec.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-02-01 10:31:59 +0100
committerDiego Biurrun <diego@biurrun.de>2013-02-05 17:01:05 +0100
commitc9f933b5b62d3054021fcdca8597d1c2fb6bdb2f (patch)
treec806492fc39c6605545f5e2b216fdfb36ed4840b /libavcodec/ppc/h264_altivec.c
parent25841dfe806a13de526ae09c11149ab1f83555a8 (diff)
downloadffmpeg-streaming-c9f933b5b62d3054021fcdca8597d1c2fb6bdb2f.zip
ffmpeg-streaming-c9f933b5b62d3054021fcdca8597d1c2fb6bdb2f.tar.gz
Add av_cold attributes to arch-specific init functions
Diffstat (limited to 'libavcodec/ppc/h264_altivec.c')
-rw-r--r--libavcodec/ppc/h264_altivec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/ppc/h264_altivec.c b/libavcodec/ppc/h264_altivec.c
index 0cbf895..59642fd 100644
--- a/libavcodec/ppc/h264_altivec.c
+++ b/libavcodec/ppc/h264_altivec.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/ppc/types_altivec.h"
@@ -718,7 +719,8 @@ static void ff_biweight_h264_pixels ## W ## _altivec(uint8_t *dst, uint8_t *src,
H264_WEIGHT(16)
H264_WEIGHT( 8)
-void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth, const int chroma_format_idc)
+av_cold void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth,
+ const int chroma_format_idc)
{
if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
if (bit_depth == 8) {
OpenPOWER on IntegriCloud