[FFmpeg-devel] [PATCH] lavu/base64: return meaningful error code.

Nicolas George nicolas.george at normalesup.org
Tue Jan 1 16:04:34 CET 2013


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavutil/base64.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/base64.c b/libavutil/base64.c
index 98b9c94..353490e 100644
--- a/libavutil/base64.c
+++ b/libavutil/base64.c
@@ -125,7 +125,7 @@ out2:
     *dst++ = v >> 4;
 out1:
 out0:
-    return bits & 1 ? -1 : dst - out;
+    return bits & 1 ? AVERROR(EINVAL) : dst - out;
 }
 
 /*****************************************************************************
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list