Mercurial > libavcodec.hg
diff utils.c @ 8603:555c2ab21d84 libavcodec
Split ff_log_missing_feature into ff_log_missing_feature
and ff_log_ask_for_sample.
Patch by Kenan Gillet: gmail_adress(author)
author | benoit |
---|---|
date | Fri, 16 Jan 2009 16:20:42 +0000 |
parents | 68e959302527 |
children | a637db9f59b1 |
line wrap: on
line diff
--- a/utils.c Fri Jan 16 02:50:20 2009 +0000 +++ b/utils.c Fri Jan 16 16:20:42 2009 +0000 @@ -36,6 +36,7 @@ #include "opt.h" #include "imgconvert.h" #include "audioconvert.h" +#include "internal.h" #include <stdlib.h> #include <stdarg.h> #include <limits.h> @@ -1089,8 +1090,16 @@ "occurs, it means that your file has a feature which has not " "been implemented.", feature); if(want_sample) - 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."); - av_log(avc, AV_LOG_WARNING, "\n"); + ff_log_ask_for_sample(avc, NULL); + else + av_log(avc, AV_LOG_WARNING, "\n"); } + +void ff_log_ask_for_sample(void *avc, const char *msg) +{ + if (msg) + av_log(avc, AV_LOG_WARNING, "%s ", 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"); +}