diff options
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -109,13 +109,13 @@ static char *value_string(char *buf, int buf_size, struct unit_value uv) if (uv.unit == unit_byte_str && use_byte_value_binary_prefix) { index = (long long int) (log(vald)/log(2)) / 10; - index = av_clip(index, 0, FF_ARRAY_ELEMS(binary_unit_prefixes) -1); - vald /= pow(2, index*10); + index = av_clip(index, 0, FF_ARRAY_ELEMS(binary_unit_prefixes) - 1); + vald /= pow(2, index * 10); prefix_string = binary_unit_prefixes[index]; } else { index = (long long int) (log10(vald)) / 3; - index = av_clip(index, 0, FF_ARRAY_ELEMS(decimal_unit_prefixes) -1); - vald /= pow(10, index*3); + index = av_clip(index, 0, FF_ARRAY_ELEMS(decimal_unit_prefixes) - 1); + vald /= pow(10, index * 3); prefix_string = decimal_unit_prefixes[index]; } @@ -1557,7 +1557,8 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename) AVFormatContext *fmt_ctx = NULL; AVDictionaryEntry *t; - if ((err = avformat_open_input(&fmt_ctx, filename, iformat, &format_opts)) < 0) { + if ((err = avformat_open_input(&fmt_ctx, filename, + iformat, &format_opts)) < 0) { print_error(filename, err); return err; } @@ -1581,8 +1582,9 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename) AVCodec *codec; if (!(codec = avcodec_find_decoder(stream->codec->codec_id))) { - av_log(NULL, AV_LOG_ERROR, "Unsupported codec with id %d for input stream %d\n", - stream->codec->codec_id, stream->index); + av_log(NULL, AV_LOG_ERROR, + "Unsupported codec with id %d for input stream %d\n", + stream->codec->codec_id, stream->index); } else if (avcodec_open2(stream->codec, codec, NULL) < 0) { av_log(NULL, AV_LOG_ERROR, "Error while opening codec for input stream %d\n", stream->index); @@ -1700,8 +1702,9 @@ static int opt_format(const char *opt, const char *arg) static void opt_input_file(void *optctx, const char *arg) { if (input_filename) { - av_log(NULL, AV_LOG_ERROR, "Argument '%s' provided as input filename, but '%s' was already specified.\n", - arg, input_filename); + av_log(NULL, AV_LOG_ERROR, + "Argument '%s' provided as input filename, but '%s' was already specified.\n", + arg, input_filename); exit(1); } if (!strcmp(arg, "-")) |