提交 8a355d21 编写于 作者: Z Zhang Rui

ff_ffplay: guard avfilter related code

上级 1717438d
...@@ -3402,10 +3402,12 @@ int ffp_prepare_async_l(FFPlayer *ffp, const char *file_name) ...@@ -3402,10 +3402,12 @@ int ffp_prepare_async_l(FFPlayer *ffp, const char *file_name)
return -1; return -1;
} }
#if CONFIG_AVFILTER
if (ffp->vfilter0) { if (ffp->vfilter0) {
GROW_ARRAY(ffp->vfilters_list, ffp->nb_vfilters); GROW_ARRAY(ffp->vfilters_list, ffp->nb_vfilters);
ffp->vfilters_list[ffp->nb_vfilters - 1] = ffp->vfilter0; ffp->vfilters_list[ffp->nb_vfilters - 1] = ffp->vfilter0;
} }
#endif
VideoState *is = stream_open(ffp, file_name, NULL); VideoState *is = stream_open(ffp, file_name, NULL);
if (!is) { if (!is) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册