From: Clément Bœsch <[email protected]>
Signed-off-by: Diego Biurrun <[email protected]>
---
ffmpeg.c | 2 +-
ffplay.c | 2 +-
libavutil/log.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 9f2d5b9..2871b3d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -424,7 +424,7 @@ static int configure_video_filters(AVInputStream *ist,
AVOutputStream *ost)
static void term_exit(void)
{
- av_log(NULL, AV_LOG_QUIET, "");
+ av_log(NULL, AV_LOG_QUIET, "%s", "");
}
static volatile int received_sigterm = 0;
diff --git a/ffplay.c b/ffplay.c
index ffd4c23..339d5e2 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1258,7 +1258,7 @@ static void do_exit(void)
if (show_status)
printf("\n");
SDL_Quit();
- av_log(NULL, AV_LOG_QUIET, "");
+ av_log(NULL, AV_LOG_QUIET, "%s", "");
exit(0);
}
diff --git a/libavutil/log.h b/libavutil/log.h
index c823a76..e74bffe 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -159,7 +159,7 @@ const char* av_default_item_name(void* ctx);
* "Last message repeated x times" messages below (f)printf messages with some
* bad luck.
* Also to receive the last, "last repeated" line if any, the user app must
- * call av_log(NULL, AV_LOG_QUIET, ""); at the end
+ * call av_log(NULL, AV_LOG_QUIET, "%s", ""); at the end
*/
#define AV_LOG_SKIP_REPEATED 1
void av_log_set_flags(int arg);
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel