mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-01 22:49:21 +00:00
parent
7b48bf9524
commit
d1afd3e1d6
@ -59,6 +59,11 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
int nb_formats = 1;
|
int nb_formats = 1;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (!s->pix_fmts) {
|
||||||
|
av_log(ctx, AV_LOG_ERROR, "Empty output format string.\n");
|
||||||
|
return AVERROR(EINVAL);
|
||||||
|
}
|
||||||
|
|
||||||
/* count the formats */
|
/* count the formats */
|
||||||
cur = s->pix_fmts;
|
cur = s->pix_fmts;
|
||||||
while ((cur = strchr(cur, '|'))) {
|
while ((cur = strchr(cur, '|'))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user