aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-12 02:00:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-12 02:00:33 +0100
commit4ee88db840b3b53322e49aa8a993e227d744a1e8 (patch)
tree6d9efed3df50e273b859544053c52ae61e8c2712
parentf0d9ccac893758b3e34477fb81453b3bae092121 (diff)
downloadffmpeg-4ee88db840b3b53322e49aa8a993e227d744a1e8.tar.gz
sanm: init sizes with the full frame size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/sanm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index e56a19a48e..500c01f37c 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -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);