| 2541 | } |
| 2542 | |
| 2543 | static void close_input_file(InputFile *ifile) |
| 2544 | { |
| 2545 | int i; |
| 2546 | |
| 2547 | /* close decoder for each stream */ |
| 2548 | for (i = 0; i < ifile->nb_streams; i++) |
| 2549 | avcodec_free_context(&ifile->streams[i].dec_ctx); |
| 2550 | |
| 2551 | av_freep(&ifile->streams); |
| 2552 | ifile->nb_streams = 0; |
| 2553 | |
| 2554 | avformat_close_input(&ifile->fmt_ctx); |
| 2555 | } |
| 2556 | |
| 2557 | static int probe_file(AVTextFormatContext *tfc, const char *filename, |
| 2558 | const char *print_filename) |
no test coverage detected