1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/srtenc, webvttenc: Use av_printf_format

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-02-18 01:29:23 +01:00
parent ed9de6d2d8
commit e9a587af25
2 changed files with 2 additions and 8 deletions

View File

@ -41,10 +41,7 @@ typedef struct {
} SRTContext;
#ifdef __GNUC__
__attribute__ ((__format__ (__printf__, 2, 3)))
#endif
static void srt_print(SRTContext *s, const char *str, ...)
static av_printf_format(2, 3) void srt_print(SRTContext *s, const char *str, ...)
{
va_list vargs;
va_start(vargs, str);

View File

@ -38,10 +38,7 @@ typedef struct {
int stack_ptr;
} WebVTTContext;
#ifdef __GNUC__
__attribute__ ((__format__ (__printf__, 2, 3)))
#endif
static void webvtt_print(WebVTTContext *s, const char *str, ...)
static av_printf_format(2, 3) void webvtt_print(WebVTTContext *s, const char *str, ...)
{
va_list vargs;
va_start(vargs, str);