aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avs.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2009-03-03 13:26:17 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2009-03-03 13:26:17 +0000
commitd176f9038711e497b32f1431e60e4e3da94179d1 (patch)
tree0c1d74af15c627958f5502180428f555f9ed3390 /libavformat/avs.c
parent429d6b2180c2a314cc2fa9b6f068910516335bda (diff)
downloadffmpeg-d176f9038711e497b32f1431e60e4e3da94179d1.tar.gz
Reduce allocated length of the HTTP authentication request field buffer, as
noticed by Stefano and Luca in the "[PATCH]RTSP Basic Authentication" mailinglist thread. av_base64_encode() was recently changed. The previous implementation required 12 extra bytes (ceil(len(src)/3.)*4+12), whereas the new one is guaranteed to fit in an exact buffer (ceil(len(src)/3.)*4), plus one extra byte for the trailing zero. This change fixes no bug, it just slightly decreases the amount of allocated memory. Originally committed as revision 17761 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avs.c')
0 files changed, 0 insertions, 0 deletions