diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-08 02:39:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-08 02:48:44 +0200 |
commit | 0b5d1b88e09be795a5e7c07a89d84ab47d466457 (patch) | |
tree | 733d2fd84092557a402e21c652191fd9727b4327 /libavutil/opt.c | |
parent | b11b7ceb8926703d1fac8adc3595a20ab7afb471 (diff) | |
download | ffmpeg-0b5d1b88e09be795a5e7c07a89d84ab47d466457.tar.gz |
avutil/opt: fix types passed to the format string "%s"
Fixes gcc warnings
Fixes CID1061056
Fixes CID1061057
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 87ac570e5a..5a679926a1 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -962,10 +962,10 @@ static void opt_list(void *obj, void *av_log_obj, const char *unit, av_log(av_log_obj, AV_LOG_INFO, "%d/%d", q.num, q.den); } break; case AV_OPT_TYPE_PIXEL_FMT: - av_log(av_log_obj, AV_LOG_INFO, "%s", av_x_if_null(av_get_pix_fmt_name(opt->default_val.i64), "none")); + av_log(av_log_obj, AV_LOG_INFO, "%s", (char *)av_x_if_null(av_get_pix_fmt_name(opt->default_val.i64), "none")); break; case AV_OPT_TYPE_SAMPLE_FMT: - av_log(av_log_obj, AV_LOG_INFO, "%s", av_x_if_null(av_get_sample_fmt_name(opt->default_val.i64), "none")); + av_log(av_log_obj, AV_LOG_INFO, "%s", (char *)av_x_if_null(av_get_sample_fmt_name(opt->default_val.i64), "none")); break; case AV_OPT_TYPE_COLOR: case AV_OPT_TYPE_IMAGE_SIZE: |