1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

opt_list: fix vertical alignment of types

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-12-08 01:24:07 +01:00
parent f4ceca6261
commit e0a553d526

View File

@ -782,41 +782,41 @@ static void opt_list(void *obj, void *av_log_obj, const char *unit,
switch (opt->type) { switch (opt->type) {
case AV_OPT_TYPE_FLAGS: case AV_OPT_TYPE_FLAGS:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<flags>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<flags>");
break; break;
case AV_OPT_TYPE_INT: case AV_OPT_TYPE_INT:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<int>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<int>");
break; break;
case AV_OPT_TYPE_INT64: case AV_OPT_TYPE_INT64:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<int64>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<int64>");
break; break;
case AV_OPT_TYPE_DOUBLE: case AV_OPT_TYPE_DOUBLE:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<double>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<double>");
break; break;
case AV_OPT_TYPE_FLOAT: case AV_OPT_TYPE_FLOAT:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<float>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<float>");
break; break;
case AV_OPT_TYPE_STRING: case AV_OPT_TYPE_STRING:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<string>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<string>");
break; break;
case AV_OPT_TYPE_RATIONAL: case AV_OPT_TYPE_RATIONAL:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<rational>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<rational>");
break; break;
case AV_OPT_TYPE_BINARY: case AV_OPT_TYPE_BINARY:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<binary>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<binary>");
break; break;
case AV_OPT_TYPE_IMAGE_SIZE: case AV_OPT_TYPE_IMAGE_SIZE:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<image_size>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<image_size>");
break; break;
case AV_OPT_TYPE_PIXEL_FMT: case AV_OPT_TYPE_PIXEL_FMT:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<pix_fmt>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<pix_fmt>");
break; break;
case AV_OPT_TYPE_SAMPLE_FMT: case AV_OPT_TYPE_SAMPLE_FMT:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", "<sample_fmt>"); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "<sample_fmt>");
break; break;
case AV_OPT_TYPE_CONST: case AV_OPT_TYPE_CONST:
default: default:
av_log(av_log_obj, AV_LOG_INFO, "%-7s ", ""); av_log(av_log_obj, AV_LOG_INFO, "%-12s ", "");
break; break;
} }
av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_ENCODING_PARAM) ? 'E' : '.'); av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_ENCODING_PARAM) ? 'E' : '.');