aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-04-23 01:09:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-04-23 01:09:43 +0200
commite16665bf72d226b2c87c76a677414b8ef7720d7e (patch)
treeb68414614d4ce2eecee89185f80a30a039899bb2 /libavcodec/utils.c
parent03ac7991286c583c73c8c44c71aeba1265c61cba (diff)
parentd9dee728b8c50fb6dbff3701e1abcb2eac5895b3 (diff)
downloadffmpeg-e16665bf72d226b2c87c76a677414b8ef7720d7e.tar.gz
Merge remote branch 'qatar/master'
* qatar/master: Use av_log_ask_for_sample() to request samples from users. Make av_log_ask_for_sample() accept a variable number of arguments. vqavideo: We no longer need to ask for version 1 samples. aacdec: indentation cosmetics Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index ec3f4b965b..d6b71b42db 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1208,13 +1208,19 @@ void av_log_missing_feature(void *avc, const char *feature, int want_sample)
av_log(avc, AV_LOG_WARNING, "\n");
}
-void av_log_ask_for_sample(void *avc, const char *msg)
+void av_log_ask_for_sample(void *avc, const char *msg, ...)
{
+ va_list argument_list;
+
+ va_start(argument_list, msg);
+
if (msg)
- av_log(avc, AV_LOG_WARNING, "%s ", msg);
+ av_vlog(avc, AV_LOG_WARNING, msg, argument_list);
av_log(avc, AV_LOG_WARNING, "If you want to help, upload a sample "
"of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ "
"and contact the ffmpeg-devel mailing list.\n");
+
+ va_end(argument_list);
}
static AVHWAccel *first_hwaccel = NULL;