avcodec/srtenc, webvttenc: Use av_printf_format
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
+1
-4
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user