void ff_mp_msg(int mod, int lev, const char *format, ... ){ va_list va; va_start(va, format); //FIXME convert lev/mod av_vlog(NULL, AV_LOG_DEBUG, format, va); va_end(va); }
static void rtmp_log(int level, const char *fmt, va_list args) { switch (level) { default: case RTMP_LOGCRIT: level = AV_LOG_FATAL; break; case RTMP_LOGERROR: level = AV_LOG_ERROR; break; case RTMP_LOGWARNING: level = AV_LOG_WARNING; break; case RTMP_LOGINFO: level = AV_LOG_INFO; break; case RTMP_LOGDEBUG: level = AV_LOG_VERBOSE; break; case RTMP_LOGDEBUG2: level = AV_LOG_DEBUG; break; } av_vlog(NULL, level, fmt, args); av_log(NULL, level, "\n"); }
void av_log(void* avcl, int level, const char *fmt, ...) { va_list vl; va_start(vl, fmt); av_vlog(avcl, level, fmt, vl); va_end(vl); }
static void print_log(AVFilterContext *ctx, const char *msg, ...) { va_list argument_list; va_start(argument_list, msg); if (msg) av_vlog(ctx, AV_LOG_INFO, msg, argument_list); va_end(argument_list); }
static void vreport_config_error(const char *filename, int line_num, int log_level, int *errors, const char *fmt, va_list vl) { av_log(NULL, log_level, "%s:%d: ", filename, line_num); av_vlog(NULL, log_level, fmt, vl); if (errors) (*errors)++; }
static void ass_log(int ass_level, const char *fmt, va_list args, void *ctx) { const int ass_level_clip = av_clip(ass_level, 0, FF_ARRAY_ELEMS(ass_libavfilter_log_level_map) - 1); const int level = ass_libavfilter_log_level_map[ass_level_clip]; av_vlog(ctx, level, fmt, args); av_log(ctx, level, "\n"); }
void av_log(void* avcl, int level, const char *fmt, ...) { AVClass* avc= avcl ? *(AVClass**)avcl : NULL; va_list vl; va_start(vl, fmt); if(avc && avc->version >= (50<<16 | 15<<8 | 2) && avc->log_level_offset_offset && level>=AV_LOG_FATAL) level += *(int*)(((uint8_t*)avcl) + avc->log_level_offset_offset); av_vlog(avcl, level, fmt, vl); va_end(vl); }
static void report_config_error(const char *filename, int line_num, int log_level, int *errors, const char *fmt, ...) { va_list vl; va_start(vl, fmt); av_log(NULL, log_level, "%s:%d: ", filename, line_num); av_vlog(NULL, log_level, fmt, vl); va_end(vl); (*errors)++; }
static void missing_feature_sample(int sample, void *avc, const char *msg, va_list argument_list) { 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 " "occurs, it means that your file has a feature which has not " "been implemented.\n"); if (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.\n"); }