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

Function close_input_file

fftools/ffprobe.c:2543–2555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2541}
2542
2543static 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
2557static int probe_file(AVTextFormatContext *tfc, const char *filename,
2558 const char *print_filename)

Callers 1

probe_fileFunction · 0.85

Calls 3

avcodec_free_contextFunction · 0.85
av_freepFunction · 0.85
avformat_close_inputFunction · 0.85

Tested by

no test coverage detected