summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2013-04-05 03:49:17 -0300
committerMichael Niedermayer <michaelni@gmx.at>2013-04-13 21:14:34 +0200
commit572e38a513139b21c35acfef13aa7c4e307ab648 (patch)
tree9d83873ba2e6598068fad00fdc850d836cd7e284 /libavutil
parent38e66af43b06aa6f1f5ca3722aa154c67cd287d1 (diff)
downloadffmpeg-572e38a513139b21c35acfef13aa7c4e307ab648.tar.gz
log: Remove redundant va_list creation from missing_feature_sample()
avpriv_request_sample() and avpriv_report_missing_feature() were printing bogus values for the extra arguments. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/log.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index a27413444d..6051418535 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -281,12 +281,8 @@ void av_log_set_callback(void (*callback)(void*, int, const char*, va_list))
av_log_callback = callback;
}
-static void missing_feature_sample(int sample, void *avc, const char *msg, ...)
+static void missing_feature_sample(int sample, void *avc, const char *msg, va_list argument_list)
{
- va_list argument_list;
-
- va_start(argument_list, msg);
-
av_vlog(avc, AV_LOG_WARNING, msg, argument_list);
av_log(avc, AV_LOG_WARNING, " is not implemented. Update your FFmpeg "
"version to the newest one from Git. If the problem still "
@@ -296,8 +292,6 @@ static void missing_feature_sample(int sample, void *avc, const char *msg, ...)
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);
}
void avpriv_request_sample(void *avc, const char *msg, ...)