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

Nicolas George git at videolan.org
Sat Jan 5 15:42:12 CET 2013


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Jan  1 16:04:15 2013 +0100| [305180f5259e1caf341b8d46ab28d20168ff98ef] | committer: Nicolas George

lavu/base64: return meaningful error code.

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

 libavutil/base64.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/base64.c b/libavutil/base64.c
index 98b9c94..87e2dfd 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_INVALIDDATA : dst - out;
 }
 
 /*****************************************************************************



More information about the ffmpeg-cvslog mailing list