aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_filter.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-07-13 15:11:07 +0200
committerAnton Khirnov <anton@khirnov.net>2023-07-20 20:40:26 +0200
commit13ebc9a0a9b6b67e7bd896a729d9651a24373135 (patch)
treea384c3dfee5ad6a6591cd2423e5264fc06d00ccb /fftools/ffmpeg_filter.c
parentcb8242db8d0191fbb51f06eca6bee2c1a2c0c075 (diff)
downloadffmpeg-13ebc9a0a9b6b67e7bd896a729d9651a24373135.tar.gz
fftools/ffmpeg_filter: replace remaining report_and_exit() with error codes
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r--fftools/ffmpeg_filter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index b7fb66c047..538cf6cd43 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -723,14 +723,14 @@ static InputFilter *ifilter_alloc(FilterGraph *fg)
ifp->frame = av_frame_alloc();
if (!ifp->frame)
- report_and_exit(AVERROR(ENOMEM));
+ return NULL;
ifp->format = -1;
ifp->fallback.format = -1;
ifp->frame_queue = av_fifo_alloc2(8, sizeof(AVFrame*), AV_FIFO_FLAG_AUTO_GROW);
if (!ifp->frame_queue)
- report_and_exit(AVERROR(ENOMEM));
+ return NULL;
return ifilter;
}
@@ -1783,7 +1783,7 @@ int reap_filters(FilterGraph *fg, int flush)
fd = frame_data(filtered_frame);
if (!fd) {
av_frame_unref(filtered_frame);
- report_and_exit(AVERROR(ENOMEM));
+ return AVERROR(ENOMEM);
}
// only use bits_per_raw_sample passed through from the decoder