summaryrefslogtreecommitdiff
path: root/libavfilter/x86/vf_yadif_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/x86/vf_yadif_init.c')
-rw-r--r--libavfilter/x86/vf_yadif_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/x86/vf_yadif_init.c b/libavfilter/x86/vf_yadif_init.c
index c39bc44da6..ecf012af7c 100644
--- a/libavfilter/x86/vf_yadif_init.c
+++ b/libavfilter/x86/vf_yadif_init.c
@@ -60,8 +60,7 @@ void ff_yadif_filter_line_10bit_ssse3(void *dst, void *prev, void *cur,
av_cold void ff_yadif_init_x86(YADIFContext *yadif)
{
int cpu_flags = av_get_cpu_flags();
- int bit_depth = (!yadif->csp) ? 8
- : yadif->csp->comp[0].depth;
+ int bit_depth = yadif->depth;
if (bit_depth >= 15) {
#if ARCH_X86_32