Mercurial > libavcodec.hg
changeset 1884:de6a0d995ca7 libavcodec
width,height%16!=0 fix
author | michael |
---|---|
date | Sun, 14 Mar 2004 17:33:48 +0000 |
parents | 12f260596631 |
children | 6588eda7d107 |
files | mpegvideo.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo.c Sun Mar 14 15:04:21 2004 +0000 +++ b/mpegvideo.c Sun Mar 14 17:33:48 2004 +0000 @@ -3411,10 +3411,10 @@ if(mb_x*16+16 > s->width || mb_y*16+16 > s->height){ ff_emulated_edge_mc(s->edge_emu_buffer , ptr_y , wrap_y,16,16,mb_x*16,mb_y*16, s->width , s->height); ptr_y= s->edge_emu_buffer; - ff_emulated_edge_mc(s->edge_emu_buffer+16*wrap_y , ptr_cb, wrap_c, 8, 8, mb_x*8, mb_y*8, s->width>>1, s->height>>1); - ptr_cb= s->edge_emu_buffer+16*wrap_y; - ff_emulated_edge_mc(s->edge_emu_buffer+16*wrap_y+8, ptr_cr, wrap_c, 8, 8, mb_x*8, mb_y*8, s->width>>1, s->height>>1); - ptr_cr= s->edge_emu_buffer+16*wrap_y+8; + ff_emulated_edge_mc(s->edge_emu_buffer+18*wrap_y , ptr_cb, wrap_c, 8, 8, mb_x*8, mb_y*8, s->width>>1, s->height>>1); + ptr_cb= s->edge_emu_buffer+18*wrap_y; + ff_emulated_edge_mc(s->edge_emu_buffer+18*wrap_y+9, ptr_cr, wrap_c, 8, 8, mb_x*8, mb_y*8, s->width>>1, s->height>>1); + ptr_cr= s->edge_emu_buffer+18*wrap_y+9; } if (s->mb_intra) {