[FFmpeg-cvslog] thumbnail: fix error code in case of invalid args.

Clément Bœsch git at videolan.org
Tue Dec 27 11:15:31 CET 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue Dec 27 11:15:21 2011 +0100| [f1f87439e51b581aa080b2672ec5cf72198626b7] | committer: Clément Bœsch

thumbnail: fix error code in case of invalid args.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f1f87439e51b581aa080b2672ec5cf72198626b7
---

 libavfilter/vf_thumbnail.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c
index b2f1e94..4b1b38b 100644
--- a/libavfilter/vf_thumbnail.c
+++ b/libavfilter/vf_thumbnail.c
@@ -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));



More information about the ffmpeg-cvslog mailing list