mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
Fix compilation without --disable-swscale.
This commit is contained in:
parent
c76861723b
commit
0ddcfa42cc
@ -311,7 +311,7 @@ int opt_default(const char *opt, const char *arg)
|
|||||||
const AVOption *oc, *of, *os;
|
const AVOption *oc, *of, *os;
|
||||||
char opt_stripped[128];
|
char opt_stripped[128];
|
||||||
const char *p;
|
const char *p;
|
||||||
const AVClass *cc = avcodec_get_class(), *fc = avformat_get_class();
|
const AVClass *cc = avcodec_get_class(), *fc = avformat_get_class(), *sc;
|
||||||
|
|
||||||
if (!(p = strchr(opt, ':')))
|
if (!(p = strchr(opt, ':')))
|
||||||
p = opt + strlen(opt);
|
p = opt + strlen(opt);
|
||||||
@ -324,8 +324,8 @@ int opt_default(const char *opt, const char *arg)
|
|||||||
if ((of = av_opt_find(&fc, opt, NULL, 0, AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ)))
|
if ((of = av_opt_find(&fc, opt, NULL, 0, AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ)))
|
||||||
av_dict_set(&format_opts, opt, arg, FLAGS(of));
|
av_dict_set(&format_opts, opt, arg, FLAGS(of));
|
||||||
#if CONFIG_SWSCALE
|
#if CONFIG_SWSCALE
|
||||||
|
sc = sws_get_class();
|
||||||
if ((os = av_opt_find(&sc, opt, NULL, 0, AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ))) {
|
if ((os = av_opt_find(&sc, opt, NULL, 0, AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ))) {
|
||||||
const AVClass *sc = sws_get_class();
|
|
||||||
// XXX we only support sws_flags, not arbitrary sws options
|
// XXX we only support sws_flags, not arbitrary sws options
|
||||||
int ret = av_set_string3(sws_opts, opt, arg, 1, NULL);
|
int ret = av_set_string3(sws_opts, opt, arg, 1, NULL);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user