diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-07-14 18:21:39 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-07-20 20:47:46 +0200 |
commit | 140cb5a74294f62343f327049057089a3e3abf5b (patch) | |
tree | 0cbd5d883d3ed9775814e4342345760922dad996 /fftools | |
parent | 83ace80bfd80fcdba2c65fa1d554923ea931d5bd (diff) | |
download | ffmpeg-140cb5a74294f62343f327049057089a3e3abf5b.tar.gz |
fftools/ffprobe: replace report_and_exit() with returning error codes
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffprobe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index c83d20995e..6180a5c952 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -3350,7 +3350,7 @@ static int open_input_file(InputFile *ifile, const char *filename, fmt_ctx = avformat_alloc_context(); if (!fmt_ctx) - report_and_exit(AVERROR(ENOMEM)); + return AVERROR(ENOMEM); if (!av_dict_get(format_opts, "scan_all_pmts", NULL, AV_DICT_MATCH_CASE)) { av_dict_set(&format_opts, "scan_all_pmts", "1", AV_DICT_DONT_OVERWRITE); @@ -3377,7 +3377,7 @@ static int open_input_file(InputFile *ifile, const char *filename, err = setup_find_stream_info_opts(fmt_ctx, codec_opts, &opts); if (err < 0) - report_and_exit(err); + return err; err = avformat_find_stream_info(fmt_ctx, opts); |