base64: 10l endian fix.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Jan 2012 22:04:20 +0000 (23:04 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Jan 2012 22:06:04 +0000 (23:06 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/base64.c

index 1be7b7c..d907805 100644 (file)
@@ -90,7 +90,7 @@ int av_base64_decode(uint8_t *out, const char *in_str, int out_size)
         BASE64_DEC_STEP(2);
         BASE64_DEC_STEP(3);
         // Using AV_WB32 directly confuses compiler
-        v = av_be2ne32(v) >> 8;
+        v = av_be2ne32(v << 8);
         AV_WN32(dst, v);
         dst += 3;
         in += 4;