projects
/
blender.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebb8d39
)
quiet invalid warning in ffmpeg_log_callback with -Wmissing-format-attribute.
author
Campbell Barton <ideasman42@gmail.com>
Mon, 8 Oct 2012 01:05:37 +0000
(
01:05
+0000)
committer
Campbell Barton <ideasman42@gmail.com>
Mon, 8 Oct 2012 01:05:37 +0000
(
01:05
+0000)
source/blender/imbuf/intern/util.c
patch
|
blob
|
history
diff --git
a/source/blender/imbuf/intern/util.c
b/source/blender/imbuf/intern/util.c
index 833671e3f2f3240bcd6a1d133f39434e45db8a6e..2d04b7c74136d599d109c2fbde86530191ae8df2 100644
(file)
--- a/
source/blender/imbuf/intern/util.c
+++ b/
source/blender/imbuf/intern/util.c
@@
-223,6
+223,10
@@
static int isqtime(const char *name)
#ifdef WITH_FFMPEG
+/* BLI_vsnprintf in ffmpeg_log_callback() causes invalid warning */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmissing-format-attribute"
+
static char ffmpeg_last_error[1024];
static void ffmpeg_log_callback(void *ptr, int level, const char *format, va_list arg)
@@
-240,6
+244,8
@@
static void ffmpeg_log_callback(void *ptr, int level, const char *format, va_lis
}
}
+#pragma GCC diagnostic pop
+
void IMB_ffmpeg_init(void)
{
av_register_all();