Browse Source

thumbnail: fix error code in case of invalid args.

tags/n0.10
Clément Bœsch 14 years ago
parent
commit
f1f87439e5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_thumbnail.c

+ 1
- 1
libavfilter/vf_thumbnail.c View File

@@ -54,7 +54,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
thumb->n_frames = 0;
av_log(ctx, AV_LOG_ERROR,
"Invalid number of frames specified (minimum is 2).\n");
return AVERROR(ENOMEM);
return AVERROR(EINVAL);
}
}
thumb->frames = av_calloc(thumb->n_frames, sizeof(*thumb->frames));


Loading…
Cancel
Save