[FFmpeg-devel] Questions about av_base64_encode()
Luca Abeni
lucabe72
Mon Oct 29 15:59:00 CET 2007
Hi all,
I am trying to use base64 encoding from libavutil, so I looked
at av_base64_encode() and I have two questions about it:
1) Why isn't the "uint8_t * src" marked as "const"?
Would it be ok to change the function's prototype in
char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len)
?
2) av_base64_encode() fails if buf_len < len * 4 / 3 + 12...
Why "+12"? Shouldn't it be "+4", or "+5" (considering the
0 to terminate the string)? Or am I missing something?
Thanks,
Luca
More information about the ffmpeg-devel
mailing list