提交 9c8c6e5b 编写于 作者: B bbcallen

ffplay: do not fail on unknown option

上级 6b19d6e1
...@@ -1684,7 +1684,9 @@ static int stream_component_open(FFPlayer *ffp, int stream_index) ...@@ -1684,7 +1684,9 @@ static int stream_component_open(FFPlayer *ffp, int stream_index)
return -1; return -1;
if ((t = av_dict_get(opts, "", NULL, AV_DICT_IGNORE_SUFFIX))) { if ((t = av_dict_get(opts, "", NULL, AV_DICT_IGNORE_SUFFIX))) {
av_log(NULL, AV_LOG_ERROR, "Option %s not found.\n", t->key); av_log(NULL, AV_LOG_ERROR, "Option %s not found.\n", t->key);
#ifdef FFP_MERGE
return AVERROR_OPTION_NOT_FOUND; return AVERROR_OPTION_NOT_FOUND;
#endif
} }
ic->streams[stream_index]->discard = AVDISCARD_DEFAULT; ic->streams[stream_index]->discard = AVDISCARD_DEFAULT;
...@@ -1882,8 +1884,10 @@ static int read_thread(void *arg) ...@@ -1882,8 +1884,10 @@ static int read_thread(void *arg)
} }
if ((t = av_dict_get(ffp->format_opts, "", NULL, AV_DICT_IGNORE_SUFFIX))) { if ((t = av_dict_get(ffp->format_opts, "", NULL, AV_DICT_IGNORE_SUFFIX))) {
av_log(NULL, AV_LOG_ERROR, "Option %s not found.\n", t->key); av_log(NULL, AV_LOG_ERROR, "Option %s not found.\n", t->key);
#ifdef FFP_MERGE
ret = AVERROR_OPTION_NOT_FOUND; ret = AVERROR_OPTION_NOT_FOUND;
goto fail; goto fail;
#endif
} }
is->ic = ic; is->ic = ic;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册