mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/srtenc, webvttenc: Use av_printf_format
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
ed9de6d2d8
commit
e9a587af25
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue