This makes the function more flexible and allows using it in more places. --- libavcodec/avcodec.h | 4 ++-- libavcodec/utils.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index df4e617..166a088 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -4299,9 +4299,9 @@ void av_log_missing_feature(void *avc, const char *feature, int want_sample); * only, and would normally not be used by applications. * @param[in] avc a pointer to an arbitrary struct of which the first field is * a pointer to an AVClass struct - * @param[in] msg string containing an optional message, or NULL if no message + * @param[in] msg format string containing an optional message, or NULL if no message */ -void av_log_ask_for_sample(void *avc, const char *msg); +void av_log_ask_for_sample(void *avc, const char *msg, ...); /** * Register the hardware accelerator hwaccel. diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 6d31254..b629d2f 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1199,7 +1199,7 @@ 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, ...) { if (msg) av_log(avc, AV_LOG_WARNING, "%s ", msg); -- 1.5.6.5 _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel