[FFmpeg-cvslog] sanm: init sizes with the full frame size
Michael Niedermayer
git at videolan.org
Tue Feb 12 02:14:53 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Feb 12 02:00:04 2013 +0100| [4ee88db840b3b53322e49aa8a993e227d744a1e8] | committer: Michael Niedermayer
sanm: init sizes with the full frame size
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4ee88db840b3b53322e49aa8a993e227d744a1e8
---
libavcodec/sanm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index e56a19a..500c01f 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);
More information about the ffmpeg-cvslog
mailing list