1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-08 02:15:46 +02:00

bprint: Remove custom vsnprintf

A proper implementation was introduced in
ba53720280 for MSVC, and
MinGW already has vsnprintf.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
Derek Buitenhuis 2012-09-07 09:05:28 -04:00
parent 663c21d4ac
commit d512e74dec

View File

@ -27,25 +27,6 @@
#include "error.h"
#include "mem.h"
#if defined(_WIN32)
static int vsnprintf_fixed(char *s, size_t n, const char *format, va_list va)
{
va_list va2;
int r;
va_copy(va2, va);
r = vsnprintf(s, n, format, va2);
va_end(va2);
if (r == -1)
r = _vscprintf(format, va);
return r;
}
#define vsnprintf vsnprintf_fixed
#endif
#define av_bprint_room(buf) ((buf)->size - FFMIN((buf)->len, (buf)->size))
#define av_bprint_is_allocated(buf) ((buf)->str != (buf)->reserved_internal_buffer)