gifdec: gif_copy_img_rect: Fix end pointer