MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / probe_file

Function probe_file

ffprobe.c:270–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270static int probe_file(const char *filename)
271{
272 AVFormatContext *fmt_ctx;
273 int ret, i;
274
275 if ((ret = open_input_file(&fmt_ctx, filename)))
276 return ret;
277
278 if (do_show_streams)
279 for (i = 0; i < fmt_ctx->nb_streams; i++)
280 show_stream(fmt_ctx, i);
281
282 if (do_show_format)
283 show_format(fmt_ctx);
284
285 av_close_input_file(fmt_ctx);
286 return 0;
287}
288
289static void show_usage(void)
290{

Callers 1

mainFunction · 0.85

Calls 4

open_input_fileFunction · 0.85
show_streamFunction · 0.85
show_formatFunction · 0.85
av_close_input_fileFunction · 0.85

Tested by

no test coverage detected