changeset 11659:45512d8b6b35 libavcodec

Make avcodec_check_dimensions() return AVERROR(EINVAL) rather than -1 in case of invalid picture size.
author stefano
date Sun, 25 Apr 2010 15:05:16 +0000
parents 8a4be9e3f0ee
children dd10b0c7d0de
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Fri Apr 23 16:45:38 2010 +0000
+++ b/utils.c	Sun Apr 25 15:05:16 2010 +0000
@@ -224,7 +224,7 @@
         return 0;
 
     av_log(av_log_ctx, AV_LOG_ERROR, "picture size invalid (%ux%u)\n", w, h);
-    return -1;
+    return AVERROR(EINVAL);
 }
 
 int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){