avutil/log: added av_log_format_line2 which returns buffer length
authorAndreas Weis <github@ghulbus-inc.de>
Wed, 27 Apr 2016 06:15:17 +0000 (08:15 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 Apr 2016 17:23:05 +0000 (19:23 +0200)
commitfb9187129c3d07ac6d0f7deaa27f1248394d8f91
treeff1ba082a3a820db6543150695468e93ab4d5b56
parent6f784c158bd56f2cc73354974ceebb04a40e0f52
avutil/log: added av_log_format_line2 which returns buffer length

The new function behaves the same as av_log_format_line, but also forwards
the return value from the underlying snprintf call. This will allow
callers to accurately determine the size requirements for the line buffer.

Signed-off-by: Andreas Weis <github@ghulbus-inc.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
doc/APIchanges
libavutil/log.c
libavutil/log.h
libavutil/version.h