Message ID | 20200624132725.1483-3-jamrial@gmail.com |
---|---|
State | Accepted |
Commit | 52b9bd2c95aec2c6e4a35923d2fc920c5f00033c |
Headers | show |
Series | [FFmpeg-devel,1/3] avcodec/mlpenc: remove delay codec capability | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c index 4d50f0ea33..52ea06ed91 100644 --- a/libavcodec/mlpenc.c +++ b/libavcodec/mlpenc.c @@ -1820,7 +1820,8 @@ static int apply_filter(MLPEncodeContext *ctx, unsigned int channel) if (!filter_state_buffer[i]) { av_log(ctx->avctx, AV_LOG_ERROR, "Not enough memory for applying filters.\n"); - return AVERROR(ENOMEM); + ret = AVERROR(ENOMEM); + goto free_and_return; } }
Signed-off-by: James Almer <jamrial@gmail.com> --- libavcodec/mlpenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)