aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/hpeldsp_vp3_init.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-01-19 17:55:59 +0100
committerDiego Biurrun <diego@biurrun.de>2016-07-20 18:37:45 +0200
commit0a39c9ac0bfd7345fe676b4e2707d9cec3cbb553 (patch)
treeadb326a9902149403cc54dd8b4a316eb17753f6c /libavcodec/x86/hpeldsp_vp3_init.c
parent95c1df929b92d81454656c222a35ec5f7db576b4 (diff)
downloadffmpeg-0a39c9ac0bfd7345fe676b4e2707d9cec3cbb553.tar.gz
x86: hpeldsp: Don't check for bitexact flag when initializing VP3-specific code
That code is only ever initialized with that flag set.
Diffstat (limited to 'libavcodec/x86/hpeldsp_vp3_init.c')
-rw-r--r--libavcodec/x86/hpeldsp_vp3_init.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libavcodec/x86/hpeldsp_vp3_init.c b/libavcodec/x86/hpeldsp_vp3_init.c
index 2510c11d81..cc1f5e4566 100644
--- a/libavcodec/x86/hpeldsp_vp3_init.c
+++ b/libavcodec/x86/hpeldsp_vp3_init.c
@@ -38,19 +38,15 @@ void ff_put_no_rnd_pixels8_y2_exact_3dnow(uint8_t *block,
const uint8_t *pixels,
ptrdiff_t line_size, int h);
-av_cold void ff_hpeldsp_vp3_init_x86(HpelDSPContext *c, int cpu_flags, int flags)
+av_cold void ff_hpeldsp_vp3_init_x86(HpelDSPContext *c, int cpu_flags)
{
if (EXTERNAL_AMD3DNOW(cpu_flags)) {
- if (flags & AV_CODEC_FLAG_BITEXACT) {
- c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_3dnow;
- c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_3dnow;
- }
+ c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_3dnow;
+ c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_3dnow;
}
if (EXTERNAL_MMXEXT(cpu_flags)) {
- if (flags & AV_CODEC_FLAG_BITEXACT) {
- c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_mmxext;
- c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_mmxext;
- }
+ c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_mmxext;
+ c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_mmxext;
}
}