aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-25 00:19:59 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-25 00:24:25 +0200
commitaa478213445995d10c53a74343e98cc0bd296924 (patch)
tree85428b40f56362ecefe5419881ce629e7141fba5 /cmdutils.c
parent2ecf9492ff3be5bf1e65e7a9a5fc7a00ae462a4b (diff)
downloadffmpeg-aa478213445995d10c53a74343e98cc0bd296924.tar.gz
cmdutils: remove writes in never read variable
Fixes CID739868 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmdutils.c b/cmdutils.c
index af24c4fcd5..a504ca5ebf 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -462,8 +462,8 @@ int opt_default(void *optctx, const char *opt, const char *arg)
}
#if CONFIG_SWSCALE
sc = sws_get_class();
- if (!consumed && (o = av_opt_find(&sc, opt, NULL, 0,
- AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ))) {
+ if (!consumed && av_opt_find(&sc, opt, NULL, 0,
+ AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ)) {
// XXX we only support sws_flags, not arbitrary sws options
int ret = av_opt_set(sws_opts, opt, arg, 0);
if (ret < 0) {
@@ -475,8 +475,8 @@ int opt_default(void *optctx, const char *opt, const char *arg)
#endif
#if CONFIG_SWRESAMPLE
swr_class = swr_get_class();
- if (!consumed && (o = av_opt_find(&swr_class, opt, NULL, 0,
- AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ))) {
+ if (!consumed && av_opt_find(&swr_class, opt, NULL, 0,
+ AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ)) {
int ret = av_opt_set(swr_opts, opt, arg, 0);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Error setting option %s.\n", opt);