aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/x86
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-08-12 00:21:54 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-08-26 14:21:11 +0800
commit2a9b934675b9e2d3850b46f8a618c19b03f02551 (patch)
treed47efa1d64f2308ad067f6627631917692432078 /libavfilter/x86
parent9bb4707b1faea6b6efe64b546c2be4a608ca64c1 (diff)
downloadffmpeg-2a9b934675b9e2d3850b46f8a618c19b03f02551.tar.gz
avfilter/yadif: simplify the code for better readability
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavfilter/x86')
-rw-r--r--libavfilter/x86/vf_bwdif_init.c2
-rw-r--r--libavfilter/x86/vf_yadif_init.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/x86/vf_bwdif_init.c b/libavfilter/x86/vf_bwdif_init.c
index b1e70b3bc6..817bd84663 100644
--- a/libavfilter/x86/vf_bwdif_init.c
+++ b/libavfilter/x86/vf_bwdif_init.c
@@ -55,7 +55,7 @@ av_cold void ff_bwdif_init_x86(BWDIFContext *bwdif)
{
YADIFContext *yadif = &bwdif->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 <= 8) {
#if ARCH_X86_32
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