diff options
Diffstat (limited to 'libavcodec/sanm.c')
-rw-r--r-- | libavcodec/sanm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index 826873088a..66ff52257f 100644 --- a/libavcodec/sanm.c +++ b/libavcodec/sanm.c @@ -1144,10 +1144,8 @@ static int copy_output(SANMVideoContext *ctx, SANMFrameHeader *hdr) int ret, dstpitch, height = ctx->height; int srcpitch = ctx->pitch * (hdr ? sizeof(ctx->frm0[0]) : 1); - if ((ret = ff_get_buffer(ctx->avctx, ctx->frame, 0)) < 0) { - av_log(ctx->avctx, AV_LOG_ERROR, "get_buffer() failed\n"); + if ((ret = ff_get_buffer(ctx->avctx, ctx->frame, 0)) < 0) return ret; - } dst = ctx->frame->data[0]; dstpitch = ctx->frame->linesize[0]; |