aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-01-01 16:04:15 +0100
committerNicolas George <nicolas.george@normalesup.org>2013-01-05 15:40:40 +0100
commit305180f5259e1caf341b8d46ab28d20168ff98ef (patch)
tree38df0587b01db7f7a7fa0be141d5e9a97f763550 /libavutil
parent6a9af925654ce91d100443c9f69b1d825c72a16f (diff)
downloadffmpeg-305180f5259e1caf341b8d46ab28d20168ff98ef.tar.gz
lavu/base64: return meaningful error code.
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/base64.c b/libavutil/base64.c
index 98b9c94d8a..87e2dfd981 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;
}
/*****************************************************************************