changeset 1541:9c4921a51392 libavcodec

* original fix still didn't align lines on s_align when CODEC_FLAG_EMU_EDGE was not set.
author romansh
date Thu, 16 Oct 2003 18:27:48 +0000
parents a0086452b9d8
children 576861d6343a
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Thu Oct 16 04:50:54 2003 +0000
+++ b/utils.c	Thu Oct 16 18:27:48 2003 +0000
@@ -240,7 +240,7 @@
             if(s->flags&CODEC_FLAG_EMU_EDGE)
                 buf->data[i] = buf->base[i];
             else
-                buf->data[i] = buf->base[i] + (pic->linesize[i]*EDGE_WIDTH>>v_shift) + (EDGE_WIDTH>>h_shift);
+                buf->data[i] = buf->base[i] + ALIGN((pic->linesize[i]*EDGE_WIDTH>>v_shift) + (EDGE_WIDTH>>h_shift), s_align);
         }
         pic->age= 256*256*256*64;
         pic->type= FF_BUFFER_TYPE_INTERNAL;