Commit 305180f5 authored by Nicolas George's avatar Nicolas George

lavu/base64: return meaningful error code.

parent 6a9af925
...@@ -125,7 +125,7 @@ out2: ...@@ -125,7 +125,7 @@ out2:
*dst++ = v >> 4; *dst++ = v >> 4;
out1: out1:
out0: out0:
return bits & 1 ? -1 : dst - out; return bits & 1 ? AVERROR_INVALIDDATA : dst - out;
} }
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment