diff options
author | Ben Avison <bavison@riscosopen.org> | 2014-07-21 14:53:08 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-08-04 22:22:54 +0200 |
commit | adf8227cf4e7b4fccb2ad88e1e09b6dc00dd00ed (patch) | |
tree | 4d42e1740f55099c18465d032c9d9239b253713d /libavcodec/arm | |
parent | db7f1c7c5a1d37e7f4da64a79a97bea1c4b6e9f8 (diff) | |
download | ffmpeg-adf8227cf4e7b4fccb2ad88e1e09b6dc00dd00ed.tar.gz |
vc-1: Add platform-specific start code search routine to VC1DSPContext.
Initialise VC1DSPContext for parser as well as for decoder.
Note, the VC-1 code doesn't actually use the function pointer yet.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/arm')
-rw-r--r-- | libavcodec/arm/vc1dsp_init_arm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/arm/vc1dsp_init_arm.c b/libavcodec/arm/vc1dsp_init_arm.c index 6d4eb79487..a6a97c8bf9 100644 --- a/libavcodec/arm/vc1dsp_init_arm.c +++ b/libavcodec/arm/vc1dsp_init_arm.c @@ -20,6 +20,7 @@ #include "libavutil/attributes.h" #include "libavutil/arm/cpu.h" +#include "libavcodec/arm/startcode.h" #include "libavcodec/vc1dsp.h" #include "vc1dsp.h" @@ -27,6 +28,8 @@ av_cold void ff_vc1dsp_init_arm(VC1DSPContext *dsp) { int cpu_flags = av_get_cpu_flags(); + if (have_setend(cpu_flags)) + dsp->startcode_find_candidate = ff_startcode_find_candidate_armv6; if (have_neon(cpu_flags)) ff_vc1dsp_init_neon(dsp); } |