ffprobe: reindent after previous commit
This commit is contained in:
parent
4b370d6126
commit
58e9025993
20
ffprobe.c
20
ffprobe.c
@ -353,16 +353,16 @@ static void writer_print_time(WriterContext *wctx, const char *key,
|
|||||||
{
|
{
|
||||||
char buf[128];
|
char buf[128];
|
||||||
|
|
||||||
if ((!is_duration && ts == AV_NOPTS_VALUE) || (is_duration && ts == 0)) {
|
if ((!is_duration && ts == AV_NOPTS_VALUE) || (is_duration && ts == 0)) {
|
||||||
writer_print_string(wctx, key, "N/A", 1);
|
writer_print_string(wctx, key, "N/A", 1);
|
||||||
} else {
|
} else {
|
||||||
double d = ts * av_q2d(*time_base);
|
double d = ts * av_q2d(*time_base);
|
||||||
struct unit_value uv;
|
struct unit_value uv;
|
||||||
uv.val.d = d;
|
uv.val.d = d;
|
||||||
uv.unit = unit_second_str;
|
uv.unit = unit_second_str;
|
||||||
value_string(buf, sizeof(buf), uv);
|
value_string(buf, sizeof(buf), uv);
|
||||||
writer_print_string(wctx, key, buf, 0);
|
writer_print_string(wctx, key, buf, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void writer_print_ts(WriterContext *wctx, const char *key, int64_t ts, int is_duration)
|
static void writer_print_ts(WriterContext *wctx, const char *key, int64_t ts, int is_duration)
|
||||||
|
Loading…
Reference in New Issue
Block a user