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>
This commit is contained in:
Andreas Weis
2016-04-27 08:15:17 +02:00
committed by Michael Niedermayer
parent 6f784c158b
commit fb9187129c
4 changed files with 33 additions and 3 deletions

View File

@@ -15,6 +15,10 @@ libavutil: 2015-08-28
API changes, most recent first:
2016-04-27 - xxxxxxx - lavu 55.23.100 - log.h
Add a new function av_log_format_line2() which returns number of bytes
written to the target buffer.
2016-xx-xx - xxxxxxx - lavc 57.37.100 - avcodec.h
Add a new audio/video encoding and decoding API with decoupled input
and output -- avcodec_send_packet(), avcodec_receive_frame(),