You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
fftools/ffmpeg_filter: replace remaining report_and_exit() with error codes
This commit is contained in:
@@ -723,14 +723,14 @@ static InputFilter *ifilter_alloc(FilterGraph *fg)
|
|||||||
|
|
||||||
ifp->frame = av_frame_alloc();
|
ifp->frame = av_frame_alloc();
|
||||||
if (!ifp->frame)
|
if (!ifp->frame)
|
||||||
report_and_exit(AVERROR(ENOMEM));
|
return NULL;
|
||||||
|
|
||||||
ifp->format = -1;
|
ifp->format = -1;
|
||||||
ifp->fallback.format = -1;
|
ifp->fallback.format = -1;
|
||||||
|
|
||||||
ifp->frame_queue = av_fifo_alloc2(8, sizeof(AVFrame*), AV_FIFO_FLAG_AUTO_GROW);
|
ifp->frame_queue = av_fifo_alloc2(8, sizeof(AVFrame*), AV_FIFO_FLAG_AUTO_GROW);
|
||||||
if (!ifp->frame_queue)
|
if (!ifp->frame_queue)
|
||||||
report_and_exit(AVERROR(ENOMEM));
|
return NULL;
|
||||||
|
|
||||||
return ifilter;
|
return ifilter;
|
||||||
}
|
}
|
||||||
@@ -1783,7 +1783,7 @@ int reap_filters(FilterGraph *fg, int flush)
|
|||||||
fd = frame_data(filtered_frame);
|
fd = frame_data(filtered_frame);
|
||||||
if (!fd) {
|
if (!fd) {
|
||||||
av_frame_unref(filtered_frame);
|
av_frame_unref(filtered_frame);
|
||||||
report_and_exit(AVERROR(ENOMEM));
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
// only use bits_per_raw_sample passed through from the decoder
|
// only use bits_per_raw_sample passed through from the decoder
|
||||||
|
Reference in New Issue
Block a user