~ubuntu-branches/debian/experimental/libav/experimental

« back to all changes in this revision

Viewing changes to libavcodec/ppc/fmtconvert_altivec.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2014-08-10 09:45:02 UTC
  • mfrom: (1.1.28) (2.1.45 sid)
  • Revision ID: package-import@ubuntu.com-20140810094502-p8pds4kq0zpig5oq
Tags: 6:11~alpha1-1
* New upstream Release v11
  - Fixes Unchecked conversion from double to enum (Closes: #749164)
* Add some post v11_alpha1 patches from upstream
* All SONAMEs bumped because of internal changes, but external API is
  promised to have not changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "libavutil/attributes.h"
23
23
#include "libavutil/cpu.h"
24
24
#include "libavutil/mem.h"
 
25
#include "libavutil/ppc/cpu.h"
25
26
#include "libavutil/ppc/util_altivec.h"
26
27
#include "libavcodec/fmtconvert.h"
27
 
#include "dsputil_altivec.h"
28
28
 
29
29
#if HAVE_ALTIVEC
30
30
 
165
165
                                     AVCodecContext *avctx)
166
166
{
167
167
#if HAVE_ALTIVEC
168
 
    if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
 
168
    if (!PPC_ALTIVEC(av_get_cpu_flags()))
169
169
        return;
170
170
 
171
171
    c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_altivec;