vf_mp: check list in querry_format()

Fixes CID717772
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-19 19:51:33 +02:00
parent 31fdf3065d
commit 042a738b45
1 changed files with 3 additions and 0 deletions

View File

@ -787,6 +787,9 @@ static int query_formats(AVFilterContext *ctx)
}
}
if (!avfmts)
return -1;
//We assume all allowed input formats are also allowed output formats
ff_set_common_formats(ctx, avfmts);
return 0;