| 268 | } |
| 269 | |
| 270 | static 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 | |
| 289 | static void show_usage(void) |
| 290 | { |
no test coverage detected