summaryrefslogtreecommitdiffstats
path: root/sub/dec_sub.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-12 15:58:48 +0100
committerwm4 <wm4@nowhere>2016-02-12 15:58:48 +0100
commit028773611949186865ea6977eca9493b2fc57853 (patch)
tree095815888fed1fa340062d03cab919fc86a47410 /sub/dec_sub.c
parentfd80fcd3f34482d9b9b5cc46c90cb2e52bccfc14 (diff)
downloadmpv-028773611949186865ea6977eca9493b2fc57853.tar.bz2
mpv-028773611949186865ea6977eca9493b2fc57853.tar.xz
sub: remove always-true check
Confuses Coverity with FORWARD_NULL on the mp_err() at the end of the function. These pointers are never NULL. Fixes CID 1350059.
Diffstat (limited to 'sub/dec_sub.c')
-rw-r--r--sub/dec_sub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/dec_sub.c b/sub/dec_sub.c
index e8b63986ab..641a5ab1da 100644
--- a/sub/dec_sub.c
+++ b/sub/dec_sub.c
@@ -104,7 +104,7 @@ struct dec_sub *sub_create(struct mpv_global *global, struct demuxer *demuxer,
.codec = sh->codec,
};
- if (sh->codec && sub->sd->driver->init(sub->sd) >= 0)
+ if (sub->sd->driver->init(sub->sd) >= 0)
return sub;
ta_set_parent(log, NULL);