Browse Source

sanm: init sizes with the full frame size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 13 years ago
parent
commit
4ee88db840
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/sanm.c

+ 2
- 1
libavcodec/sanm.c View File

@@ -745,7 +745,8 @@ static int process_frame_obj(SANMVideoContext *ctx)
return AVERROR_INVALIDDATA;
avcodec_set_dimensions(ctx->avctx, FFMAX(left + w, ctx->width),
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)) {
av_log(ctx->avctx, AV_LOG_ERROR, "error resizing buffers\n");
return AVERROR(ENOMEM);


Loading…
Cancel
Save