diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2013-01-01 16:04:15 +0100 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-01-05 15:40:40 +0100 |
commit | 305180f5259e1caf341b8d46ab28d20168ff98ef (patch) | |
tree | 38df0587b01db7f7a7fa0be141d5e9a97f763550 /libavutil/base64.c | |
parent | 6a9af925654ce91d100443c9f69b1d825c72a16f (diff) | |
download | ffmpeg-305180f5259e1caf341b8d46ab28d20168ff98ef.tar.gz |
lavu/base64: return meaningful error code.
Diffstat (limited to 'libavutil/base64.c')
-rw-r--r-- | libavutil/base64.c | 2 |
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; } /***************************************************************************** |