Also remove unneeded log message while here.
Unified · Split
| @@ -121,7 +121,6 @@ static int set_gauss(AVFilterContext *ctx) · 120 unmodified lines | |||
| 121 | for (; i >= 0; --i) { | 121 | for (; i >= 0; --i) { |
| 122 | av_freep(&s->gauss[i]); | 122 | av_freep(&s->gauss[i]); |
| 123 | } | 123 | } |
| 124 | av_log(ctx, AV_LOG_ERROR, "Out of memory while allocating gauss buffers.\n"); | ||
| 125 | return AVERROR(ENOMEM); | 124 | return AVERROR(ENOMEM); |
| 126 | } | 125 | } |
| 127 | } | 126 | } |
| @@ -223,7 +222,6 @@ static int setup_derivative_buffers(AVFilterContext* ctx, ThreadData *td) · 95 unmodified lines | |||
| 223 | td->data[b][p] = av_mallocz_array(s->planeheight[p] * s->planewidth[p], sizeof(*td->data[b][p])); | 222 | td->data[b][p] = av_mallocz_array(s->planeheight[p] * s->planewidth[p], sizeof(*td->data[b][p])); |
| 224 | if (!td->data[b][p]) { | 223 | if (!td->data[b][p]) { |
| 225 | cleanup_derivative_buffers(td, b + 1, p); | 224 | cleanup_derivative_buffers(td, b + 1, p); |
| 226 | av_log(ctx, AV_LOG_ERROR, "Out of memory while allocating derivatives buffers.\n"); | ||
| 227 | return AVERROR(ENOMEM); | 225 | return AVERROR(ENOMEM); |
| 228 | } | 226 | } |
| 229 | } | 227 | } |
| @@ -696,7 +694,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 466 unmodified lines | |||
| 696 | } else { | 694 | } else { |
| 697 | out = ff_get_video_buffer(outlink, outlink->w, outlink->h); | 695 | out = ff_get_video_buffer(outlink, outlink->w, outlink->h); |
| 698 | if (!out) { | 696 | if (!out) { |
| 699 | av_log(ctx, AV_LOG_ERROR, "Out of memory while allocating output video buffer.\n"); | 697 | av_frame_free(&in); |
| 700 | return AVERROR(ENOMEM); | 698 | return AVERROR(ENOMEM); |
| 701 | } | 699 | } |
| 702 | av_frame_copy_props(out, in); | 700 | av_frame_copy_props(out, in); |