Commit 4ee88db8 authored by Michael Niedermayer's avatar Michael Niedermayer

sanm: init sizes with the full frame size

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f0d9ccac
...@@ -745,7 +745,8 @@ static int process_frame_obj(SANMVideoContext *ctx) ...@@ -745,7 +745,8 @@ static int process_frame_obj(SANMVideoContext *ctx)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
avcodec_set_dimensions(ctx->avctx, FFMAX(left + w, ctx->width), avcodec_set_dimensions(ctx->avctx, FFMAX(left + w, ctx->width),
FFMAX(top + h, ctx->height)); FFMAX(top + h, ctx->height));
init_sizes(ctx, left + w, top + h); init_sizes(ctx, FFMAX(left + w, ctx->width),
FFMAX(top + h, ctx->height));
if (init_buffers(ctx)) { if (init_buffers(ctx)) {
av_log(ctx->avctx, AV_LOG_ERROR, "error resizing buffers\n"); av_log(ctx->avctx, AV_LOG_ERROR, "error resizing buffers\n");
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment