summaryrefslogtreecommitdiff
path: root/libavfilter/x86
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2018-11-04 10:17:01 -0800
committerPhilip Langdale <philipl@overt.org>2018-11-14 17:41:01 -0800
commit1096614c4200fe25b22d40216148f24ebaa5192f (patch)
tree6835bede4bda68a50abf8c3b3527d5230b2a46eb /libavfilter/x86
parentfa74e4aef2103e27424d2cfae3f142149b6a3b36 (diff)
avfilter/vf_bwdif: Use common yadif frame management logic
After adding field type management to the common yadif logic, we can remove the duplicate copy of that logic from bwdif.
Diffstat (limited to 'libavfilter/x86')
-rw-r--r--libavfilter/x86/vf_bwdif_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/x86/vf_bwdif_init.c b/libavfilter/x86/vf_bwdif_init.c
index 1cb8438e5f..b1e70b3bc6 100644
--- a/libavfilter/x86/vf_bwdif_init.c
+++ b/libavfilter/x86/vf_bwdif_init.c
@@ -53,8 +53,9 @@ void ff_bwdif_filter_line_12bit_ssse3(void *dst, void *prev, void *cur, void *ne
av_cold void ff_bwdif_init_x86(BWDIFContext *bwdif)
{
+ YADIFContext *yadif = &bwdif->yadif;
int cpu_flags = av_get_cpu_flags();
- int bit_depth = (!bwdif->csp) ? 8 : bwdif->csp->comp[0].depth;
+ int bit_depth = (!yadif->csp) ? 8 : yadif->csp->comp[0].depth;
if (bit_depth <= 8) {
#if ARCH_X86_32